On Saturday 28 December 2002 01:00 pm, John Nichel wrote: > Hello fellow RedHatters, > > Can someone tell me if it's possible to set a sticky bit recursively > on a directory? What I'm looking to do is to have multiple users > creating files and directories in a certain place, and I want those > files / directories to be group readable / writeable, and belonging to a > common group. I would like to do this without changing the default > group for each user (so that they can still put stuff in their home > directory without it belonging to the common group.
To answer your question directly, chmod has a -R option to work recursively, or you can use something like "find . | xargs chmod u+s" if you want to work on only some files. However, there are other ways of doing what you want. For instance you can make all the files owned by group 'foo', and all the concerned users members of group 'foo'. Before they work on these files, they type in "newgrp foo" to make 'foo' their current default group. ---------------------------------------------------------------------------- DDDD David Kramer [EMAIL PROTECTED] http://thekramers.net DK KD DKK D If you're so special, why aren't you dead? DK KD - The Breeders DDDD -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list