From owner-freebsd-questions@FreeBSD.ORG Fri Mar 18 22:30:28 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FB3F16A4CE for ; Fri, 18 Mar 2005 22:30:28 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7678243D31 for ; Fri, 18 Mar 2005 22:30:27 +0000 (GMT) (envelope-from reetix@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so447174wra for ; Fri, 18 Mar 2005 14:30:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=aQR0nLP5scujTj7TfYacz8dLyiGHOxRtDd0mhTLZ2eFXLuVrIgoyMsNGcIL2gIWdxD7mHDhHc8IQcIR4aFERviSU+ZCnRl70QUuLsy5c8bp8VRJCSYg2EGKiRrIwDIfjyYTrZojiPNDKZwvoHU4HGVTKL3bVGg+RAJasVXY7K2Q= Received: by 10.54.77.17 with SMTP id z17mr669901wra; Fri, 18 Mar 2005 14:30:25 -0800 (PST) Received: by 10.54.23.39 with HTTP; Fri, 18 Mar 2005 14:30:25 -0800 (PST) Message-ID: Date: Fri, 18 Mar 2005 22:30:25 +0000 From: paul To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: default ACL's permission problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: paul List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 22:30:28 -0000 hello, This applies to FreeBSD 5.3 Release: I've followed the examples on setting up default acl's located at this website: 'Working With ACLs in FreeBSD 5.x' http://ezine.daemonnews.org/200310/acl.html I'm having problems with this: % umask 027 % mkdir dir setfacl -m u::rwx,m::rwx,g::rx,o::rx dir setfacl -dm u::rwx,m::rwx,g::rx,o::rx dir setfacl -dm u:gregory:rwx,m::rwx dir % touch dir/file.txt % getfacl dir/file.txt #file:dir/file.txt #owner:1009 #group:0 user::rw- user:gregory:rwx # effective: r-- group::r-x # effective: r-- mask::r-- other::--- when i attempt to write to file.txt as user gregory, I get permission denied - I can see that this is what I should expect because the mask is r--, but why? I've set rwx above? I saw a similar post on this list, and it is mentions that the file will be masked with umask. am I suppose to change my umask ? if so, why? why can't I set acl's to simply apply the default acl which I've set on the dir to any dirs/files created in that directory regardless of umask? Any help would be appreciated, Regards, Paul Manchester, UK