xfs
[Top] [All Lists]

RE: Setting Permissions with ACLs

To: Stephen VanPelt <vanpelts@xxxxxxxx>
Subject: RE: Setting Permissions with ACLs
From: John Trostel <jtrostel@xxxxxxxxxx>
Date: Mon, 04 Jun 2001 10:48:49 -0400 (EDT)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <3808415888.991650893@D8H1FF01>
Organization: Connex
Reply-to: jtrostel@xxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
Are you the original owner of the files you are trying to change the ACLs of?

Try this and tell me what you see:

1. In an XFS directory you own, create a file:

 $ touch a_file

2. check the permissions (assuming a standard umask)

 $ ls -l a_file
 -rw-rw-r--    1 jt       jt              0 Jun  4 10:38 a_file
 $ 

3. check the permission with 'chacl' (no ACL applied yet)

 $ chacl -l a_file
 a_file []

4. change the ACL using 'chacl' and check again

 $ chacl u::rwx,g::r-x,o::r--,u:user1:r--,m::r-x a_file
 $ chacl -l a_file
  a_file [u::rwx,g::r-x,o::r--,u:user1:r--,m::r-x]


On 04-Jun-2001 Stephen VanPelt wrote:
> Hello there,
> 
> I'm running Redhat 7.1 with XFS, and I've got a quick question about 
> setting permissions using the ACLs.  I tried many different configurations 
> when setting permissions on a directory and on a file, but I found that the 
> ACLs can only grant permissions on files that I've chmod'ed to 777. 
> Basically I'm finding that the ACLs cannot grant a right that has not 
> already been granted by chmod, although the ACLs will in fact restrict 
> access that has been authorized by chmod.
> 
> I'm just making sure that I'm doing everything in the best possible manner, 
> and that I have not missed a step here.  I'm very new to the linux ACL game 
> (never touched an Irix machine in my life), and I'm a little wary :)
> 
> Thanks for any help or suggestions you might have,
> 
> Stephen VanPelt
> 
> 
> 
> Stephen VanPelt
> Information Technology Consultant
> MUSC Center for Drug and Alcohol Programs
> PH: 843-792-5558 Internet:   vanpelts@xxxxxxxx
> 
> 
> __________________BEGIN FOOTER___________________
> **The Views Expressed by the Author of this Message are not **
> **necessarily those of the Medical University of South Carolina**

-- 
John M. Trostel
Linux OS Engineer
Connex
jtrostel@xxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>