Completely remove user from system
Roland Smith
rsmith at xs4all.nl
Thu Dec 23 12:50:26 UTC 2010
On Thu, Dec 23, 2010 at 10:06:31AM -0200, itpr0 wrote:
> Hi list,
>
> We are using postfix with system user authentication, I have to completely
> remove an user for the system so he couldn't auth to send e-mails.
>
> Some coworkers told to just remove the lines from /etc/passwd and
> /etc/master.passwd... I did that but the user still can authenticate.
>
> using "pw user show XXX" returns that still have a register from the user
> XXX but trying the "pw user del XXX" it says there is no such user..
>
> I tried rmuser and here is the return:
>
> # rmuser XXX
> Matching password entry:
>
> XXX:*:20887:1014::0:0:XXXXX XXXXX:/home/XXX:/nonexistent
>
> Is this the entry you wish to remove? y
> Remove user's home directory (/home/XXXX)? y
> Removing user (XXX): home passwdpw: user 'XXX' does not exist: No such file
> or directory
>
> There is any other thing that I can do to completely remove this user? It's
> urgent 'cos it's sending a lot of spam mails :( and our server administrator
> is on vacation :/
> Thank you.
After modifying /etc/master.passwd, you need to run pwd_mkdb(8):
pwd_mkdb /etc/master.passwd
Roland
--
R.F.Smith http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101223/779842fb/attachment.pgp
More information about the freebsd-questions
mailing list