/tmp problem

BALDWIN mike at whuxl.UUCP
Wed Sep 4 01:12:06 AEST 1985


> Now, another security/integrity problem on UNIX I would like to hear
> a discussion on: /tmp. Let's face it, it's a problem (anyone can do
> an 'rm /tmp/*', or fill it with junk, or usually read many files on
> it.) How about considering a temporary file type (maybe by making /tmp
> a device?) with some special rules (delete on last close, no name in
> the visible file space except to root etc.) Of course any design should
> be ignorable (transparently work the old way at sites that don't need it,
> like my UNIX/PC.)

2.8BSD, and maybe 2.9, used the sticky bit on a directory to mean that
a file in that directory could only be removed by the owner of that file
or directory.  This fixes the "rm /tmp/*" problem.  Supposedly this will
be in 4.3BSD.
-- 
						Michael Baldwin
						AT&T Bell Labs
						harpo!whuxl!mike



More information about the Comp.unix.wizards mailing list