The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 05:15 PM
overriding the mask in setfacl aladdin UNIX for Dummies Questions & Answers 4 05-30-2007 03:11 AM
setfacl -x doesn't shows it removed the ACL braindrain Shell Programming and Scripting 0 08-01-2006 05:09 AM
Usage of setfacl chakri400 Security 1 10-31-2003 11:04 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-20-2007
fredao fredao is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 59
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!
  #2 (permalink)  
Old 03-20-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
  #3 (permalink)  
Old 03-21-2007
fredao fredao is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 59
the mask is ---. Can you tell me how to change the mask for the file?
  #4 (permalink)  
Old 03-21-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0