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!

SU 1

Status
Not open for further replies.

Scunningham99

Programmer
Sep 20, 2001
815
GB
Hi when i switch user i get the following. does anyone know why


su - rcw
su: No shell

please help!!
 
Check what shell user rcw is trying to use in /etc/passwd. Then check if it exists. If it doesn't, try allocating another shell to the user. Hope this helps.
 
users set up with no shell should default to /bin/sh on Solaris.
Check that the shell in the /etc/passwd has the correct path, /bin for instance may not have a link to /usr/bin where shells normally reside.

Ged Jones

Top man
 
I think the 'No shell' message probably isn't referring to there being no shell specified in the entry in /etc/passwd, but rather an incorrectly entered one, or one that doesn't exist. If it does exist, check that it's included in /etc/shells if you have such a file. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top