no shell

February 3, 2010 at 17:42:33
Specs: solaris
Dear all,
i use solaris os.
when try to login to root user by su - it show like this:
no shell
any idea can help me?

See More: no shell

Report •

February 6, 2010 at 13:43:49
If you look at the /etc/passwd file, you probably will see the first line like this:


Whoever set up your Solaris box did not want anyone su'ing into the root account, so they assigned noshell as the shell which prohibits logging in. A normal user - using the korn shell in this case - looks like this:

nails:x:1003:1000:Nails Carmody:/home/nails:/sbin/ksh

Typically,when root has no shell, an administrator uses another method for assigning root duties; the most common method is to use the sudo command.

Report •

March 8, 2010 at 23:16:35
boot the system to single user mode
mount the primary file system on /a
vi /etc/passwd

edit the passwd file by adding the shell type as the following
unmount the /a
boot the system , every thing will be ok .

Report •
Related Solutions

Ask Question