Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 1997 11:23:34 -0600 (CST)
From:      Guy Helmer <ghelmer@cs.iastate.edu>
To:        "Jacob J. Pinsky" <jpinsky@radonc.som.sunysb.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Deleting a user
Message-ID:  <Pine.HPP.3.95.970226111329.3230A-100000@storm.cs.iastate.edu>
In-Reply-To: <33145600.45B0@radonc.som.sunysb.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 26 Feb 1997, Jacob J. Pinsky wrote:

> What is the FreeBSD command for deleting a user account?  Exactly what
> does it delete?  Thanks much.

There is no supplied command in FreeBSD 2.1.7 or prior versions that will
remove a user's account.  You can install

ftp://ftp.cdrom.com/pub/FreeBSD/incoming/removeuser2.tar.gz

FreeBSD 2.2 will include (2.2-BETA and 2.2-GAMMA versions already include
it) the command rmuser(8), which is essentially the same as removeuser
mentioned above; both follow these steps:

     1.   Removes the user's crontab(1) entry (if any)
     2.   Removes any at(1) jobs belonging to the user
     3.*  Sends a SIGKILL signal to all processes owned by the user
     4.   Removes the user from the system's local password file
     5.   Removes the user's home directory (if it is owned by the user), in-
          cluding handling of symbolic links in the path to the actual home
          directory
     6.   Removes the incoming mail and pop daemon* mail files belonging to the
          user from /var/mail
     7.*  Removes all files owned by the user from /tmp, /var/tmp, and
          /var/tmp/vi.recover.
     8.   Removes the username from all groups to which it belongs in
          /etc/group. (If a group becomes empty and the group name is the same
          as the username, the group is removed; this complements adduser(8)'s
           per-user unique groups).

(Things marked with * are only in a newer version of rmuser which may or
may not make it into 2.2-RELEASE)

Guy Helmer

Guy Helmer, Computer Science Grad Student, Iowa State - ghelmer@cs.iastate.edu
http://www.cs.iastate.edu/~ghelmer




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.HPP.3.95.970226111329.3230A-100000>