On Sat, 2002-12-28 at 18:59, John Nichel wrote: > Yeah, I know how groups / permissions work. What I was wondering, is > there a way to set a sticky bit recursively, so that no matter what the > default group of a user is, any file or directory that the user creates > in a certain directory will be set to the group of that directory. I > don't want to have too chmod and chgrp on all files / directories that > these users create. Example... > > I have two users.... > > jschmoe > jdoe > > Both users default group is the same as their user name, and they also > belong to a group named 'www'. Now, when either jschmoe or jdoe creates > a file in their home directory, it will be..... > > -rw-r--r-- 1 jschmoe jschmoe > -rw-r--r-- 1 jdoe jdoe > > However, when either one of these users creates a file in a directory > (or below) called 'webserver', the permissions / owner / group will be.... > > -rw-rw-r-- 1 jschmoe www > -rw-rw-r-- 1 jdoe www >
you can set the group stick bit on the www directory and all files will have the correct group. Whether or not the file will be group writable depends on the umask of the user creating the files. chmod g+s webserver info chmod will give you some information on this. Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list