Removing a user.

Jeremy C. Reed plug-discuss@lists.plug.phoenix.az.us
Thu, 13 Feb 2003 14:00:35 -0800 (PST)


On Thu, 13 Feb 2003, Michael Havens wrote:

> [bmike1@localhost bmike1]$ which usrdel
> which: no usrdel in (/usr/X11R6/bin:/usr/local/bin:/bin:/usr/bin)
> [bmike1@localhost bmike1]$ locate usrdel
> [bmike1@localhost bmike1]$
>
> It would seem that I don't have it?

usrdel is not userdel. Notice one has two "e" letters.

Also, using man and locate and which are not reliable methods of knowing
if commands are available.

For example, see your which output above. It doesn't show a path for /sbin
nor /usr/sbin.

You may want to try "apropos user" or "man -k user" to see what man pages
are available.

You may want to copy and paste: "userdel" to make sure you get the "e".

Or manually edit the /etc/passwd and /etc/shadow user databases. (Or use
"vipw").

Good luck,

   Jeremy C. Reed
   http://bsd.reedmedia.net/