Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

useradd trouble

Status
Not open for further replies.

expo45

Programmer
Joined
Dec 15, 2004
Messages
3
Location
US
I am trying to set up a new user with the useradd command (eg. useradd paul -p pass) but when I set up the user I am not able to log in with their new username and password. I have set up numerous users this way so I cannot figure out what the problem may be with getting new users added to the server. Suggestions?

Expo
 
Silly question but have you tried "useradd -p pass paul"?
The man page suggests the username to be last.
I'm not sure if it'll make a difference.


Trojan.
 
You also have to look at the defaults. Make sure you've got a home directory being created. If not, it may be langing in a directory it has no access to.

Type a "[tt]grep paul /etc/passwd[/tt]" and see what home directory it got. Make sure it's valid. Make sure it also has a valid shell.

Hope this helps.
 
Thanks for all the responses. It turns out that TrojanWordBlade was right. I was using the wrong order. For some reason I was conditioned to try it the way I posted it. Thanks for all the suggestions!

 
You could at least spell my name correctly! :-(


Trojan-WAR-Blade.
 
...and give him a star... He did help you, right?
 
The pen is mightier than the sword, perhaps you were being complimented :-) I prefer a katana myself.

\
<================================|//////////|0
/



JuJutsu - Jeff S.
Support Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top