From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,b69d377feb5a8a2 X-Google-Attributes: gid10952f,public X-Google-Thread: 1020c6,d4c1f7c0fe672a4 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1070f0,d4c1f7c0fe672a4 X-Google-Attributes: gid1070f0,public X-Google-Thread: fcda7,d4c1f7c0fe672a4 X-Google-Attributes: gidfcda7,public X-Google-Thread: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public From: Paul Szabo Subject: Re: Secure cleaning of /tmp was Different Unixes pros & cons Date: 1998/09/22 Message-ID: <3606C60C.41C6@usyd.edu.au>#1/1 X-Deja-AN: 393421374 Content-Transfer-Encoding: 7bit References: <35F71814.1E0B911C@iakom.com> <360674DF.C1EDCEAF@llnl.gov> <6u5vcg$92r@web.nmti.com> <360698A2.1F42719C@llnl.gov> Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.usyd.edu.au X-Trace: metro.ucc.usyd.edu.au 906413576 25471 129.78.68.1 (21 Sep 1998 21:32:56 GMT) Organization: School of Mathematics and Statistics, University of Sydney Mime-Version: 1.0 NNTP-Posting-Date: 21 Sep 1998 21:32:56 GMT Newsgroups: comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec,comp.security.unix Related to this discussion ... I wrote the following perl script. It is reasonably secure: it gives up root privileges before attempting removal (so it only works on objects owned by non-root users). Please let me know if you find any problems with it (and definitely if you can improve it). USE AT YOUR OWN RISK! -- [ The email address is munged in the headers and in the lines below, in an ] [ attempt to avoid junk (spam) mail. Sorry about the inconvenience caused. ] -- Paul Szabo - System Manager // School of Mathematics and Statistics psz at maths . usyd . edu . au // University of Sydney, NSW 2006, Australia