Re: Removing a system user account
On Sun, Mar 17, 2002 at 07:02:30PM -0500, Bob Hilliard wrote:
> dictd runs as user dictd if that user is available on the system,
> and user nobody if it is not available. It uses adduser to create
> user dictd in the preinst. Since version 1.5.5-7 it has used the
> --no-create-home option to adduser.
>
> Bug#138722 asks the dictd remove this user and the /home/dictd
> directory when purged.
>
> It is possible, but very unlikely, that the sysadmin might have
> created user dictd, with a home directory, himself. Would it be
> reasonable to remove this in the postrm? Should it ask the admin's
> permission, or are system users considered the property of the vendor?
deluser --remove-home dictd
You can also do
deluser --remove-home --backup dictd
Which will create a user.tar.gz (man deluser) with the contents of the
home directory. (I suggest doing a chdir to ~root prior to running this,
so you know where the dict.tar.gz backup will be).
--
.----------=======-=-======-=========-----------=====------------=-=-----.
/ Ben Collins -- Debian GNU/Linux -- WatchGuard.com \
` bcollins@debian.org -- Ben.Collins@watchguard.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: