File Write Permission Rules

Frank Bicknell frankb at usource.UUCP
Wed Feb 22 02:22:48 AEST 1989


In article <85 at opus.ATT.COM>, jgy at opus.ATT.COM (John Young) writes:
> In article <23095 at conexch.UUCP>, root at conexch.UUCP (Larry Dighera) writes:
> > In article <630 at jonlab.UUCP> jon at jonlab.UUCP (Jon H. LaBadie) writes:
> > <I stumbled upon a system with /tmp directory permissions as follows:
> > <	drwsrwxrwx ......
> > <Note the "s". 
> > <[...] namely a meaning for the set user id bit on directories.
> > <Anyone could create files in the directory,
> > <but only the owner of the directory, OR the owner of the individual
> > <files could remove them.
> 
> (note about the Orange County Unix Users Group omitted)
>
> Release 3.2 already supports this feature (only file owner &
> directory owner (and root)) may remove a file.  This is
> implemented using the 't', sticky bit on the directory.  

I tried it on SCO Xenix 2.3.1... neither trick works :( . 
Sounds interesting, though!

Why should this be implemented with the sticky bit, though?
What does whether or not the directory's text image is saved
after execution ( ;) ) have to do with permission to remove a
file?  Setuid bit seems to be the more logical choice.  After
all, you could extend this to the setgid bit, too, right?  Then
anyone in that group could also remove files.




-- 
Frank Bicknell; 1405 Main St, Ste 709; Sarasota, FL 34236-5701
killer!usource!frankb



More information about the Comp.unix.questions mailing list