- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- No Shell for root user
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
09-21-2001 12:25 PM
09-21-2001 12:25 PM
No Shell for root user
Now I receive ?No Shell? message when I login as root. Then it is disconnected with the host.
What Can I do to fix it? Please help. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 12:42 PM
09-21-2001 12:42 PM
Re: No Shell for root user
you can try this:
su - root -c /bin/sh
Hopefully it will give you a root shell and you can then fix the password file.
Booting to single user mode also may work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 12:42 PM
09-21-2001 12:42 PM
Re: No Shell for root user
Bad move on friday.
interrupt the boot process within the 10 sec.
-Choose Y, to Interact with ISL
#BO PRI (or the correct path of your local primary hdd)
#hpux -is (launch hp-ux in single user mode)
#mount /usr and /var (mount the necessary file system)
#vipw (to change the shell in /etc/passwd)
Also check this thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe66146ff9277d511abcd0090277a778c,00.html
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 12:53 PM
09-21-2001 12:53 PM
Re: No Shell for root user
You are a bad, bad boy.
Unless Bernie's su suggestion works this is really bad.
Booting single-user doesn't help at all. You need to boot from a recovery CD so that your root is actually on another filesystem. You then mount your old system / and edit or copy /etc/passwd.
If you have a spare system, another option is to remove the drive and put in a bootable system and make the changes. In any event, a recovery CD is your easist option.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:06 PM
09-21-2001 01:06 PM
Re: No Shell for root user
Do you use Omniback or another backup product? If so, are there "Operator" accounts that you could use to restore /etc/password with? I'd save the current one first incase anyone else has changed a password since the backup was made.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:21 PM
09-21-2001 01:21 PM
Re: No Shell for root user
Can you give me a list of the steps on how to recover it? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:29 PM
09-21-2001 01:29 PM
Re: No Shell for root user
Look the thread that I suggest it has lots of discussion about what to do when you are using recovery CD
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 11:23 PM
09-21-2001 11:23 PM
Re: No Shell for root user
Can you try,
su root -c /sbin/sh
See if it helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 06:27 AM
09-24-2001 06:27 AM
Re: No Shell for root user
I am using HP-UX B.11.11 on L-Class box. Can I
pull out the boot disk and plug in a working HP-UX B.11.20 Itanium box to make the change?
I do not have recovery CD for HP-UX B.11.11. Can I use HP-UX B.11.00 to boot up my system and then correct the problem?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 08:18 AM
09-24-2001 08:18 AM
Re: No Shell for root user
I don't see any problem. You are just copying /etc/passwd file.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 08:35 AM
09-24-2001 08:35 AM
Re: No Shell for root user
you can boot from the recovery cd for 11.00 because you need to copy /etc/passwd from the recovery cd .
booting from the recovery cd is booting a system to the memory and your / is inside the memory , after you boot from this system you can mount your own / that is the disk and copy files from te system in the memory to the system in the disk .
after booting you will get a menu with 6 option , you will need to oper l - load a file
because the recovery cd boot into the memory it puts in this system only few command .
you will need to load some command but i cant tell you which command because i dont remember all of them .
i will also advise you not to do this if you dont know how to do it .
i can send you info about how to use recovery cd but the best way is to contact HP support for a help on this issue .
if you want the info please give your e-mail adress and i will send it to you .
second - allways do a ignite backup of the system , if you had ignite backup it would take a few min. to solve this issue .