Using chpass
Ceri Davies
setantae at submonkey.net
Mon Aug 25 13:53:03 PDT 2003
On Mon, Aug 25, 2003 at 03:47:15PM -0500, Charles Howse wrote:
> Hi,
> I'm trying to learn how to use chpass to change a user's name.
> I'm not getting anywhere, I've read the man page and Googled, but can't
> find an example.
>
> I want to change toor's name to 'Nobody Important'.
> I do:
> # chpass -a toor::0:0:Nobody Important:/root:/sbin/nologin toor
> And I get:
> Corrupted entry.
>
> Can someone please set me straight?
chpass -a "toor::0:0::0:0:Nobody Important:/root:/sbin/nologin" toor
Note, however, that you're setting the password for this user to a null
password, allowing any local user in wheel to "su -m toor" if you have
added /sbin/nologin to /etc/shells.
Ceri
--
User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR?
Iniaes: Sure, I can accept all forms of payment.
-- www.chatterboxchallenge.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030825/5b91b7d6/attachment.bin
More information about the freebsd-questions
mailing list