Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Mar 2005 22:30:25 +0000
From:      paul <reetix@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   default ACL's permission problems
Message-ID:  <c2ac83820503181430382c69d7@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c2ac83820503181430382c69d7>