On Tue, 31 Aug 2010 12:07:10 -0600
AJ ONeal <[email protected]> wrote:
> I want to create a shared folder in /home/shared that multiple users
> have write access to using ACLs.
Is there a reason for doing this with ACLs vs. standard Unix groups?
[ never mind this question... I saw your answer to the similar question
Topher asked ]
> 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?
setfacl -d -m u:john:rwx /home/shared
setfacl -d -m u:james:rwx /home/shared
setfacl -d -M u:john:rw /home/shared
setfacl -d -M u:james:rw /home/shared
I think that will do it. The -d says set this as the default, the -m
says modify the directory, and the -M says modify the files. These
instructions do not remove any previously existing ACLs. If you want
to do that, replace the first invocations (the ones for john) with
--set for the directory and --set-file for the files, leave the one for
james with -m and -M to modify the existing ACL.
NOTE: I haven't tested this.
-jan-
--
Jan L. Peterson
http://www.peterson-tech.com/~jlp/
--------------------
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