Computing.Net > Forums > Solaris > Invalid default login shell for root

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Invalid default login shell for root

Reply to Message Icon

Name: Subra
Date: January 30, 2002 at 16:09:32 Pacific
Comment:

Hi All,

I was trying to change the default login shell for root from sh to tcsh on Solaris 8 in the /etc/passwd file. Accidentally, the path inserted was an invalid one.

Unfortunately, there are no other users with root privileges. su is not working as I get an invalid shell error message.

Based on a posting in this board, I tried to go into maintenance mode and boot from a CD. However, I get the same invalid shell message in maintenance mode and I get kicked into regular startup mode.

Please Help!

Thanks,

Subra



Sponsored Link
Ads by Google

Response Number 1
Name: Mark M
Date: January 30, 2002 at 17:23:19 Pacific
Reply:

boot -s cdrom from the ok prompt still gives the error?

if you have a backup of your passwd file on the drive then you could do an interactive boot and specify that file instead?



0

Response Number 2
Name: Steve M
Date: January 30, 2002 at 20:41:08 Pacific
Reply:

From the OK prompt, type boot cdrom -s

Then mount root (mount /dev/dsk/c0t0d0s0 /a)

Edit the /a/etc/passwd file and change the shell back to /bin/sh


0

Response Number 3
Name: ripon
Date: January 31, 2002 at 15:50:33 Pacific
Reply:

hi friends,

superuser's (root) default shell is not /bin/sh, it is /sbin/sh.

take care.


0

Response Number 4
Name: Subra
Date: January 31, 2002 at 16:55:21 Pacific
Reply:

Hi Mark,

Could you tell me exactly how to get to the OK prompt as well as how to do an interactive boot?

I am more of a developer trying to maintain the server and am not familiar with the usual sys admin stuff.

Thanks,

Subra


0

Response Number 5
Name: Anonymous
Date: February 3, 2002 at 00:44:07 Pacific
Reply:


To get to the OK prompt, you need to send a "break" to the system. If your directly on the system, you can simply hit Stop-A and that should take you straight to the ok prompt. To do an interactive boot from cdrom, "boot cdrom - install" (lose the quotations and note spaces). To boot from the network, "boot net - install"

If you are telneting to the system, to get to the okay prompt it would be something like Ctrl-] followed by "send brk".

If you are sshing to the system, to get to the okay prompt, hit : ~~#


0

Related Posts

See More



Response Number 6
Name: Bill
Date: February 7, 2002 at 15:55:45 Pacific
Reply:

I am also looking at this problem. I can get to the ok prompt - thanks! But, when I mount /dev/dsk/c0t0d0s0 /a my a directory has no subdirectories or files. So I cannot edit the passwd file. Any ideas?


0

Response Number 7
Name: Nasir Kamal
Date: April 27, 2002 at 04:09:29 Pacific
Reply:

I dont want to STOP-A the server as it can potentially crash the filesystems (having Disk Array),,, i m able to login through normal user... what shd i do using the normal user account ????

thanks
nasir


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Invalid default login shell for root

Root default login shell changed! Help! www.computing.net/answers/solaris/root-default-login-shell-changed-help/894.html

root shell change in /etc/passwd www.computing.net/answers/solaris/root-shell-change-in-etcpasswd/286.html

profile for root www.computing.net/answers/solaris/profile-for-root/198.html