Re: setfacl(1) Recursively?

2006-10-22 Thread Robert Watson


On Sat, 21 Oct 2006, Atom Powers wrote:


On 10/21/06, David Stanford <[EMAIL PROTECTED]> wrote:
I'm simply trying to set ACLs on a few directories but don't see an option 
to recursively apply this to the whole directory's contents. Does applying 
the ACL to a directory inherently apply it to all other files and folders 
within the directory? I've browsed the man page and handbook but can't find 
the info. Thanks.


Hmm, I don't see a recursive option either. You should be able to set ACL on 
files in a direcotry with `setfacl -m  *`, and pipe that through 'find 
-type:d` and xargs to do an entire directory tree.


Patches to add a recursive option to setfacl would be most appreciated.  If 
you (or someone else reading this) does work on it, make sure to implement the

standard set of recursion variations (symlinks, etc).

Thanks,

Robert N M Watson
Computer Laboratory
University of Cambridge
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: setfacl(1) Recursively?

2006-10-21 Thread David Stanford


Hmm, I don't see a recursive option either.
You should be able to set ACL on files in a direcotry with `setfacl -m
 *`, and pipe that through 'find -type:d` and xargs to do an
entire directory tree.



I got it with this on my server for /etc:

# cd /etc
# setfacl -m u:rsync_ssh:r,g:rsync_ssh:r `find .`

Thanks.

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: setfacl(1) Recursively?

2006-10-21 Thread Atom Powers

On 10/21/06, David Stanford <[EMAIL PROTECTED]> wrote:

I'm simply trying to set ACLs on a few directories but don't see an option
to recursively apply this to the whole directory's contents. Does applying
the ACL to a directory inherently apply it to all other files and folders
within the directory? I've browsed the man page and handbook but can't find
the info. Thanks.


Hmm, I don't see a recursive option either.
You should be able to set ACL on files in a direcotry with `setfacl -m
 *`, and pipe that through 'find -type:d` and xargs to do an
entire directory tree.

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


setfacl(1) Recursively?

2006-10-21 Thread David Stanford

Hi all,

I'm simply trying to set ACLs on a few directories but don't see an option
to recursively apply this to the whole directory's contents. Does applying
the ACL to a directory inherently apply it to all other files and folders
within the directory? I've browsed the man page and handbook but can't find
the info. Thanks.

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"