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

Re: How to remove a user?



> After searching a while for a program or script to completely remove a
> user I didn't found something and did it per hand.  Is this
> neccessary?  Thanks.

As soon as I modify programs in the shadow suite to work with both shadow
and non-shadow passwords, there will be the userdel command:

userdel [-r] username

-r means remove home directory also (without -r it just removes the user
from the password files)

Until then, you probably have to do this by hand (use vipw, it will at
least lock the passwd file against concurrent updates).

The shadow suite is currently still rather beta (in the middle of source
tree reorganization and adding GNU autoconf support) but I hope it will
stabilize soon (it really should...).

Marek


Reply to: