![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setfacl permission issue | MeganP | Shell Programming and Scripting | 0 | 08-01-2007 02:15 PM |
| overriding the mask in setfacl | aladdin | UNIX for Dummies Questions & Answers | 4 | 05-30-2007 12:11 AM |
| setfacl -x doesn't shows it removed the ACL | braindrain | Shell Programming and Scripting | 0 | 08-01-2006 02:09 AM |
| Usage of setfacl | chakri400 | Security | 1 | 10-31-2003 08:04 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
setfacl
I use:
setfacl -m user:bbb:rwx folder1 to give user bbb the permission to go into my folder folder1, and cd folder1 setfacl -m user:bbb:rwx * to give bbb the permission under this folder. however, bbb can not cd to folder1, and got "permission denied" messages. the umask is 0022. Can anyone tell me why, and how to fix it? Thanks! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Run the getfacl command and check the mask on the file/directory involved. Usually you have to set the mask to allow whatever permissions you are allocating.
For example: Code:
# ls -l output.txt -rw------- 1 root other 831 Sep 27 10:34 output.txt # getfacl output.txt # file: output.txt # owner: root # group: other user::rw- group::--- #effective:--- mask:--- other:--- # setfacl -m u:samba:rw- output.txt # getfacl output.txt # file: output.txt # owner: root # group: other user::rw- user:samba:rw- #effective:--- group::--- #effective:--- mask:--- other:--- # setfacl -d u:samba:rw- output.txt # setfacl -m u:samba:rw-,m:rw- output.txt # getfacl output.txt # file: output.txt # owner: root # group: other user::rw- user:samba:rw- #effective:rw- group::--- #effective:--- mask:rw- other:--- |
|
#3
|
|||
|
|||
|
the mask is ---. Can you tell me how to change the mask for the file?
|
|
#4
|
||||
|
||||
|
Simply rerun your setfacl command, just add ",m:r-x" after the user specific entries. You can see the setfacl command with the mask settings towards the end of my example above as well.
|
||||
| Google The UNIX and Linux Forums |