Re: Using chpass

2003-08-25 Thread Ceri Davies
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


pgp0.pgp
Description: PGP signature


RE: Using chpass

2003-08-25 Thread Charles Howse
  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
minutewhat 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
#


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]