- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root shell invalid
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:35 PM
05-08-2006 09:35 PM
I accidentally changed the root shell , in the /etc/passwd file, to a path that doesnt exist. I get NO SHELL response from the system when i try to login, or su from a different user.
What can i do? Can i do su root -c "some command to force a new shell path". Does anyone know of that command syntax?
I prefer to do something like use the su command , or ftp command to change the password file, but nothing is working. I dont want to reboot using a new media. I have the boot CDROM, but i cant boot to single user mode; To boot into single user mode, u need to be logged in as root.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:39 PM
05-08-2006 09:39 PM
Re: Root shell invalid
You must boot into single user mode to change /etc/passwd again.
Stop you applications and power down the server. Restart the server and go into single user mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:42 PM
05-08-2006 09:42 PM
Re: Root shell invalid
You can try to boot with single user mode. It will not ask you to login, as this is a maintenance boot mode. So don't worry. Just boot in the single user mode.
Once you at at #, just vi /etc/passwd and change that. Some times you may need to mount /usr and /var.
Ensure that you are logged/access console via MP or GSP or directly the console.
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:43 PM
05-08-2006 09:43 PM
Re: Root shell invalid
When I just press the power button, to powerdown the system, at what point do i need to make sure i get into single user mode.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:45 PM
05-08-2006 09:45 PM
Re: Root shell invalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:45 PM
05-08-2006 09:45 PM
Re: Root shell invalid
Long live HP.
Can i still get support?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:46 PM
05-08-2006 09:46 PM
Re: Root shell invalid
Take a look at these threads,
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=594770
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=82975
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:47 PM
05-08-2006 09:47 PM
Re: Root shell invalid
bo pri
Interact with IPL? answer y
when you get a prompt type:
hpux -is
This will take you into single user mode.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:49 PM
05-08-2006 09:49 PM
Re: Root shell invalid
I have no knowledge of Sun and do not know how to boot into single-user mode in it.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:49 PM
05-08-2006 09:49 PM
Re: Root shell invalid
sytem# su (only) from other user instead of su -
That option will login without using the shell.
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 09:57 PM
05-08-2006 09:57 PM
Re: Root shell invalid
If you can't reboot the system in single user mode from command, push reset bottom, interrupt the booting proces and on OK prompt type boot -s to enter the single user mode then you can make the changes.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 10:02 PM
05-08-2006 10:02 PM
Re: Root shell invalid
The question is: How do i interrupt the boot process?
I pressed the reset button, and there is no 10 second grace period to enter the maintenance mode (as on HP)
Moreover, i'm connected using a PC as a console: i.e there's no STOP+A button.
This is a nightmare,
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 10:38 PM
05-08-2006 10:38 PM
Re: Root shell invalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 10:39 PM
05-08-2006 10:39 PM
Re: Root shell invalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:03 PM
05-08-2006 11:03 PM
Re: Root shell invalid
http://gd.tuwien.ac.at/sun/solaris/sol2faq/Q5.47.html
or general
http://gd.tuwien.ac.at/sun/solaris/sol2faq/index.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:07 PM
05-08-2006 11:07 PM
Re: Root shell invalid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:15 PM
05-08-2006 11:15 PM
Re: Root shell invalid
We've got control keys, escape keys etc, but no break key.
I pressed ESCAPE+CTRL KEY, and what happens is that it launches the microsoft start menu. Please help? This is a desperate situation. Thank you everyone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:22 PM
05-08-2006 11:22 PM
Re: Root shell invalid
IF YOU ARE, TRY Ctrl+Pause. Else you can't do it from network connection and without installation CD. Sorry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:28 PM
05-08-2006 11:28 PM
Re: Root shell invalid
OK. I found an application that gets me into the OK prompt.
Once i'm in the OK promot, do i do a
boot cdrom -s
or
boot -s
I mean, if i just boot into single user mode, do you think that should be OK?
If i boot from CDROM, what happens from there?
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:35 PM
05-08-2006 11:35 PM
Re: Root shell invalid
http://www.adminschoice.com/docs/solaris_error_messages_o_s.htm#errno197
You must boot from CD and then mount the partition where the /etc/passwd is, and after that with editor ed or vi make the changes of the shell in /etc/passwd.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:45 PM
05-08-2006 11:45 PM
Re: Root shell invalid
The website says to do the following:
"....
After the system comes up and gives you a
# prompt,
mount the device corresponding to the original / partition somewhere, such
as with a mount(1M) command similar to the one below. Then run an editor on the newly-mounted system password file (use ed(1) if
terminal support is lacking):
# mount /dev/dsk/c0t3d0s0 /mnt # ed /mnt/etc/passwd
So, how can i find out the filesystem to mount, doing a cat on /etc/vfstab only gives me 3 filesystems, and not one is of a physical system.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:48 PM
05-08-2006 11:48 PM
Re: Root shell invalid
ok> boot -s
if your system is up, use vi to change the shell to /sbin/sh (default root shell for solaris 9)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2006 11:51 PM
05-08-2006 11:51 PM
Re: Root shell invalid
You have to start it again in normal mode and see where is the root partition. aAfter that boot from CD and make the changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2006 12:07 AM
05-09-2006 12:07 AM
Re: Root shell invalid
So, Robert-Jan's remark was to boot into single user mode, and from there vi and change the /etc/passwd file back to
what it should be.
Surely, at the console prompt, it will still ask me for a password, and subsequently fail due to No shell?
Concerning Borislav's response:
OK, so in normal mode I do:
a) a vi /etc/fstab (find out what the root partition is)
b) mount the root partition using mount /dev/dsk/
c) vi /a/etc/passwd
....
Is that correct? First of all , fstab doesnt exist... how else therefore can i find out the root partition?
Thanks,