The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-20-2007
Registered User
 

Join Date: Dec 2006
Posts: 58
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!
Reply With Quote
Forum Sponsor
  #2  
Old 03-20-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
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:---
Note the changes in the setfacl command and the corresponding changes in the effective permissions.
Reply With Quote
  #3  
Old 03-21-2007
Registered User
 

Join Date: Dec 2006
Posts: 58
the mask is ---. Can you tell me how to change the mask for the file?
Reply With Quote
  #4  
Old 03-21-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0