lkml.org 
[lkml]   [1998]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: hardlinks.... sucks... ;-(
On Wed, 7 Jan 1998, Albert D. Cahalan wrote:

> > Try something a bit like one of the following:
> >
> > find / -user 1234 -exec chown 4321 {} ;
> > find / -user 1234 -exec rm {} ;
>
> Alright now, how many people would do that? :-)
>
> 1. the file is found by "find"
> 2. the user removes it and makes a link
> 3. the "chown" command runs

If you're writing your own scripts for this, you can lock the user's
password, kill all their processes, and remove their crontab before doing
the find.


------------------------------------------------------------------
Jon Lewis <jlewis@fdt.net> | Unsolicited commercial e-mail will
Network Administrator | be proof-read for $199/message.
Florida Digital Turnpike |
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____


\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.102 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site