Link to home
Start Free TrialLog in
Avatar of dbusher
dbusher

asked on

adduser question

Redhad 7.0
I want to use the adduser command to add user JDOE as part of the SALES group with PASSWORD BUCKO and leave the default path that of the sales group. And I want the new user login to be enabled.
adduser JDOE -g SALES -p BUCKO   seems to create the user ok but JDOE cannot log in with password BUCKO for some reason. Any clues
Avatar of chris_calabrese
chris_calabrese

What's the exact adduser command line?
From the man page:
-p passwd
     The  encrypted password, as returned by crypt(3) or
     an MD5 password generator.  The default is to  dis-
     able the account.

IE., the password *MUST BE THE ENCRYPTED VALUE* not the plaintext password.

Indeed, if you look in your /etc/shadow file, you will see that for JDOE's encrypted password, it shows BUCKO.

ASKER CERTIFIED SOLUTION
Avatar of olidel
olidel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dbusher

ASKER

Thank you.  That works great.