[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fully removing a user?



On Wed, Nov 05, 2003 at 11:49:32PM +0100, Benedict Verheyen wrote:
> Monique Y. Herman wrote:
> > So, I've noticed that my home machine has some accounts lying around
> > that are certainly unused -- I set up a user so that a friend could
> > use my disk space, that sort of thing.
> >
> > Got me thinking ... okay, you use 'userdel -r foo', and it gets rid of
> > the passwd entry, home directory, and mailspool ...
> >
> > It's also occured to me that the user may have cron jobs installed.
> > What other things might a user have that aren't automagically handled?
> >
> > --
> > monique
> > PLEASE don't CC me.  Please.  Pretty please with sugar on top.
> > Whatever it takes, just don't CC me!  I'm already subscribed!!
> 
> How about this command: find / -user user
> This would return all files owned by that user
> And if you want to search in all files for that user name:
>     grep -inR user /
> 

You can user deluser (configuration in /etc/deluser.conf) to 
remove the files owned by the user anywhere on the system.

-- 
David Jardine

"Running Debian GNU/Linux and
loving every minute of it." -Sacher M.



Reply to: