xfs
[Top] [All Lists]

Re: Setting Permissions with ACLs

To: Stephen VanPelt <vanpelts@xxxxxxxx>
Subject: Re: Setting Permissions with ACLs
From: Hasch@xxxxxxxxxxx (Juergen Hasch)
Date: Mon, 04 Jun 2001 16:54:17 +0200
Cc: linux-xfs@xxxxxxxxxxx
References: <3808415888.991650893@D8H1FF01>
Sender: owner-linux-xfs@xxxxxxxxxxx
Stephen VanPelt schrieb:
> 
> 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 :)
> 

It works for me, here is a simple example:

bash-2.04$ ls -al
total 16
drwxr-xr-x    2 hasch    users          29 Jun  4 16:52 .
drwxr-xr-x   72 hasch    users        8192 Jun  4 16:50 ..
-rwxrwx---+   1 hasch    users           0 Jun  4 16:50 test
-rwxr-x---    1 hasch    users           0 Jun  4 16:52 test1    
bash-2.04$ chacl -l test
test []
bash-2.04$ chacl u::rwx,u:postgres:rw--,g::r--,o::---,m::rwx test
bash-2.04$ chacl -l test
test [u::rwx,u:postgres:rw-,g::r--,o::---,m::rwx]    

postgres@linux:/home/hasch/acl_t > cat test      
postgres@linux:/home/hasch/acl_t > cat test1   
cat: test1: Keine Berechtigung                  (means access denied)


...Juergen

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