Path: utzoo!attcan!uunet!lll-winken!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jfc From: jfc@athena.mit.edu (John F Carr) Newsgroups: comp.unix.internals Subject: Re: non-superuser chown(2)s considered harmful Message-ID: <1990Dec12.052114.2694@athena.mit.edu> Date: 12 Dec 90 05:21:14 GMT References: <18792@rpp386.cactus.org> <1990Dec10.231812.23634@gjetor.geac.COM> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 17 In article <1990Dec10.231812.23634@gjetor.geac.COM> adeboer@gjetor.geac.COM (Anthony DeBoer) writes: >Just for my $0.02 worth, if quotas are in effect, why not have a nightly >daemon that goes through each user's directory and blows away anything he/she >doesn't own? This should take care of out-chowning files to bypass >allocation. It is much more polite to chown the files to the owner of the directory, going up as many levels as needed to find an acceptable owner. I wrote such a program to run on our file servers (we run BSD, which doesn't allow users to run chown, but our NFS servers map unauthenticated users to user "nobody" on the server so files owned by "nobody" were accumulating in world-writeable directories). -- John Carr (jfc@athena.mit.edu)