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

No shell

Status
Not open for further replies.

dssops

Technical User
Jul 8, 2003
3
0
0
GB
Had a power outage on a SUN E6000 box yesterday and since them have not been able to su - oracle, get the following error -

# su - oracle
su: No shell
#

Have searched unsuccessfully to find the way around this but no luck yet, grateful of any help.
 
What shell is defined for the "oracle" user in /etc/passwd (the last entry on the line).

Does that file exist? Is it a valid executable?

Annihilannic.
 


I created a user with the following entry


test2:x:1021:10::/export/home/test2:/usr/bn/bash

*Note the misspelling of bin !


I then did
# pwconv
# su - test2
su: No shell
#


Hey Presto ! Same error
Changed the line to

test2:x:1021:10::/export/home/test2:/usr/bin/bash

# pwconv
# su - test2
bash-2.03$

Usually if your missing a value from somewhere pwconv will give you this error

pwconv: ERROR: bad entry or blank line at line 26 in /etc/passwd
pwconv: Unexpected failure. Conversion not done.

So basically check the path for the shell that your assiging to the user.





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top