On Tue, 2010-08-31 at 12:07 -0600, AJ ONeal wrote:
> Can someone give me an example of how to give 'john' and 'james' rw
> permissions on all files and rwx permissions on all folders
> in /home/shared?

If there aren't any files yet:

setfacl -m u:john:rwx,u:james:rwx /home/shared/
setfacl -m d:u:john:rwx,d:u:james:rwx /home/shared/

If there are files:

find /home/shared/ -type f \
  | xargs setfacl -m u:john:rw,u:james:rw
find /home/shared/ -type d \
  | xargs setfacl -m u:john:rwx,u:james:rwx
find /home/shared/ -type d \
  | xargs setfacl -m d:u:john:rwx,d:u:james:rwx

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to