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 •

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

root:x:0:1:Super-User:/:/sbin/noshell

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 •

#2
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
root:x:0:0:Super-User:/:/sbin/sh
unmount the /a
boot the system , every thing will be ok .


Report •
Related Solutions


Ask Question