Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 2014 20:50:06 +0100
From:      Polytropon <freebsd@edvax.de>
To:        noc@hdk5.net
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Removing user from lan.
Message-ID:  <20140117205006.768a233e.freebsd@edvax.de>
In-Reply-To: <52D89B2C.3080801@hdk5.net>
References:  <52D89B2C.3080801@hdk5.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 16 Jan 2014 16:53:32 -1000, Al Plant wrote:
> Aloha,
> 
> Could anyone please send me to a how to on removing an unwanted user 
> from the lan on FreeBSD 9 and 8.
> I tried to remove the adduser file and name and I still cant use the 
> name that was there before.

Deleting the home directory is not sufficient, as the account
will still be active in files like /etc/passwd and the user
database. So while an interactive login might be inhibited
(due to a non-extisting home directory or login shell), other
kinds of access, like FTP and maybe even scp, may still be
possible. That's why the account has to be deleted entirely.
The "rmuser" and "pw userdel" commands can do this. They also
make sure the user is removed from the (generated) binary
databases.



> I read the man page and cant see from that how to get rid off all the 
> parts of the old account.

You should have a look at "man rmuser" and "man pw".


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140117205006.768a233e.freebsd>