> Just set the directory to be setgid yourgroup and group-writable and
> you should be set.

This only works if the user's umasks are appropriately set.  For 
example, if a user's umask is 022, then group write permission will not 
be set, even if the file is in the correct group.

Now, with CVS, I think you'll still be okay so long as the directories 
are group writable.  This is because CVS never writes to an existing 
file, but it creates a new file and copies the old file to it, merging 
in it's changes, and then replaces the old file with the new one.  But 
make sure that if any new directories get created, they get created 
with group write permission.

And to help with the original problem (you'll remember Bryan didn't 
want to create a new group for the 3-4 users involved in the problem), 
perhaps you could write your script in perl (rather than as a shell 
script), you could have it use "suidperl".  suidperl will detect that 
the script was suid, and will emulate the suid behavior for you.  Of 
course, you have to have suidperl installed.

        -jan-
-- 
Jan L. Peterson
Unemployed "Computer Facilitator"
http://www.peterson.ath.cx/~jlp/resume.html



____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to