The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: overriding the mask in setfacl
Lars-Christian
Newbie
Rank: 1



UID 231
Digest Posts 0
Credits 0
Posts 8
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:41 AM  Profile | P.M. 
overriding the mask in setfacl



overriding the mask in setfacl



hello everbody:
im trying to give the user "ydarwish" a full access over some directory on my sol9 machine.
however the setfacl is recalculating the mask parameter keeping me from keeping him effective write and read access:


code:
root@obi-wan> setfacl -m u:ydarwish:rwx /in_archive6
root@obi-wan> getfacl /in_archive6

# file: /in_archive6
# owner: oracle
# group: oinstall
user::rwx
user:ydarwish:rwx               #effective:r-x
group::r-x              #effective:r-x
mask:r-x
other:r-x

do you have any idea how i can give the user effective rwx??i tried the -n option but didnt work:




code:
root@obi-wan> setfacl -n -m u:ydarwish:rwx /in_archive6
setfacl: illegal option -- n
usage:
        setfacl [-r] -f aclfile file ...
        setfacl [-r] -d acl_entries file ...
        setfacl [-r] -m acl_entries file ...
        setfacl [-r] -s acl_entries file ...


Top
EV1L
Newbie
Rank: 1



UID 139
Digest Posts 0
Credits 0
Posts 28
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:41 AM  Profile | P.M. 
you can try the -s option
Top
cfajohnson
Newbie
Rank: 1



UID 19
Digest Posts 0
Credits 0
Posts 63
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:41 AM  Profile | P.M. 
change the mask.


code:

zazzybob@host ~ $ touch filename
zazzybob@host ~ $ getfacl filename

# file: filename
# owner: zazzybob
# group: sysadmin
user::rw-
group::r--              #effective:r--
mask:r--
other:r--
zazzybob@host ~ $ setfacl -m uracle:rwx filename
zazzybob@host ~ $ getfacl filename

# file: filename
# owner: zazzybob
# group: sysadmin
user::rw-
userracle:rwx         #effective:r--
group::r--              #effective:r--
mask:r--
other:r--
zazzybob@host ~ $ setfacl -m m:rwx filename
zazzybob@host ~ $ getfacl filename

# file: filename
# owner: zazzybob
# group: sysadmin
user::rw-
userracle:rwx         #effective:rwx
group::r--              #effective:r--
mask:rwx
other:r--
cheers
Top
DannyCrane
Newbie
Rank: 1



UID 105
Digest Posts 0
Credits 0
Posts 19
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:41 AM  Profile | P.M. 
thanks alot for your help guys.
i updated the mask.
but i wasnt sure about the -s option, if it will remove the old entries and keep only the newl;y entered ones??
Top
 

 

All times are GMT, the time now is Mar 21, 2010 12:07 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.006449 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP