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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UX: useradd: ERROR invalid syntax help?

Status
Not open for further replies.

E3p0

Technical User
May 31, 2001
65
US
When I type the following useradd command I get a syntax error what am I missing here?
' sudo useradd -u 1234 -g 88 -d /local/home/newuser -s /bin/noshell new user '

 
Does the directory you are allocating as 'home' to this user exist already? If not, add an -m option and it will be created for you. Hope this helps.
 
Sorry - another thought. Are you being lieteral with /bin/noshell above? If so, does it exist and is it executable? adduser requires anything specified as the -s to be a valid executable such as /usr/bin/ksh

Hope this helps.
 
/bin/noshell does exist. These folks use a 3rd party tool that authenticates access via /etc/passwd file, but they do not get command line access. Thanks for your help have a good evening(?) where you are. Never be afraid to ask for help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top