Date: Thu, 23 Dec 2010 13:50:24 +0100 From: Roland Smith <rsmith@xs4all.nl> To: itpr0 <techprosup@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Completely remove user from system Message-ID: <20101223125024.GA6231@slackbox.erewhon.net> In-Reply-To: <AANLkTimb60hZE558XdJf3U%2BxdvdWSUZ=Bxq-=P1AEbMs@mail.gmail.com> References: <AANLkTimb60hZE558XdJf3U%2BxdvdWSUZ=Bxq-=P1AEbMs@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 23, 2010 at 10:06:31AM -0200, itpr0 wrote: > Hi list, >=20 > 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. >=20 > Some coworkers told to just remove the lines from /etc/passwd and > /etc/master.passwd... I did that but the user still can authenticate. >=20 > 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.. >=20 > I tried rmuser and here is the return: >=20 > # rmuser XXX > Matching password entry: >=20 > XXX:*:20887:1014::0:0:XXXXX XXXXX:/home/XXX:/nonexistent >=20 > 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 fi= le > or directory >=20 > 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 administra= tor > is on vacation :/ > Thank you. After modifying /etc/master.passwd, you need to run pwd_mkdb(8): pwd_mkdb /etc/master.passwd Roland --=20 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) --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk0TRZAACgkQEnfvsMMhpyXIhgCcDEoHRIsbPJspkIYALoVBvaZt mbsAn3aM71vGx3FS7z3U2zERK0srAwWb =/0lp -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101223125024.GA6231>