SGID on a directory forces group but how do you force owner

Jason Joines joines
Mon May 17 11:58:12 PDT 2004


	I have a bunch of user on a web server with web pages in the 
public_html subdirectory of their home directories.  In addition to 
being able to create, delete and edit their own pages, they usually need 
assistance from some of our web guys so they need to be able to do the 
same thing.
	I set the umask so that group and owner both have rwX, and set the 
group on all the public_html directories to webguys.  Then I SGIDd 
(chmod g+s) the public_html direcotries.
	The result was that if a user put some file into their public_html 
directory, the webguys could edit or delete it.  In addition, the 
webguys could put pages up for the user.
	That's where the problem started.  If a webguy puts a page up, he owns 
it.  Then the user can't edit or delete it and it doesn't count against 
the user's quota.
	Is there any way to force the owner, like forcing the group via SGID on 
the directory?  I tried SUID on the directory but that doesn't work. 
Any other ideas?

Thanks,

Jason Joines
Open Source = Open Mind
========================


More information about the Linux-users mailing list