Using chpass
Charles Howse
chowse at charter.net
Mon Aug 25 14:07:05 PDT 2003
> > Can someone please set me straight?
>
> chpass -a "toor::0:0::0:0:Nobody Important:/root:/sbin/nologin" toor
Ahaaa! The quotes! Thank you!
> 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.
Understood, if I wanted to keep the same password.....wait a
minute....what is the default password for toor?
If I wanted to insert a new password, I'd have to use crypt, and paste
the encrypted password into the proper field, correct?
Proper syntax? Crypt newpassword...?
I read the crypt/enigma man page and did:
# crypt newpassword
(Nothing............................................)
^C
#
More information about the freebsd-questions
mailing list