- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX 10.20 single user question
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
Discussions
Discussions
Discussions
Forums
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
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-29-2002 09:43 AM
тАО05-29-2002 09:43 AM
HP-UX 10.20 single user question
A few days ago I got my first Pa-RISC machine, an HP9000 C110.. I found that it was running 10.20 so I began to tinker around a bit, I've never used HP-UX before so it's all new to me.. well I quickly discovered sam, and then swinstall.. so I installed some software.. to make it a bit more like home, first I installed bash.. which me being a BSD/Linux user at heart, was much easier for me to get comfortable in..
Well, I then was using sam and adding users and removing the old system users, as well as changing what shells users had.. I changed the root shell to bash.
Down the road, I realized that I had installed this software to the wrong location (my / parition was almost full, so I was going to move things over to my /users) so I began to uninstall the software I had on there (ie bash again).. well not thinking clearly, I didn't reassign root's shell before I uninstalled bash, so now root has no shell and I obviously have no way of fixing this (I can't reinstall bash I'm not root)
So here's my problem: I need to figure out some way to boot this machine into single user mode so that I can change root's shell path in the /etc/passwd. Does anyone know how to do this on 10.20?
I can't use the media, it didn't come with the machine, I'm running this headless and just using a null modem cable to connect to it if I need to work in the boot prom (I already configued it to the network at my house, I can telnet in to it, if there is a fix for this without going into the prom).. can someone please help me out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 09:50 AM
тАО05-29-2002 09:50 AM
Re: HP-UX 10.20 single user question
Boot the server and when it prompts for pressing any key....at startup. Press the key.
Then you will get the ISL prompt
ISL>sea
Find out the boot disk and its path
ISL> bo P1
do you want to interact with IPL, say yes
ISL> hpux -is
This command will let you go to the single user mode.
Hope this helps.
If you have a Recovery tape ( created by somebody) then you can use that.
Or else use the CORE MEDIA CD which comes along with the server. It gives you an option for recovering your system.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 09:53 AM
тАО05-29-2002 09:53 AM
Re: HP-UX 10.20 single user question
If you machine is ON then use
#init s or init S
The machine will go to single user mode.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 09:59 AM
тАО05-29-2002 09:59 AM
Re: HP-UX 10.20 single user question
1. Switch on the machine at the console , before it goes to auto boot , it will give you an option to press any key wiht in 10 seconds , press a key.
2. This will take you to the IPL mode , here you can do a BO PRI , or boot from the preimary path ( I assume that the system was working fine before)It will ask you wheterh to interact with ISL say yes , this takes you to the ISL prompt.
3. here enter hpux -is , this will take you to the single user mode , now you can edit /etc/passwd to change the default shell .
4. If vi doesnt work then you will have to mount the vg00 partitions , just do mount -a and you are good to go.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 10:53 AM
тАО05-29-2002 10:53 AM
Re: HP-UX 10.20 single user question
Now my advice: NEVER NEVER NEVER NEVER change root's shell. It should ALWAYS be /sbin/sh. If it is not set that way, it can cause problems when you reboot your machine.
If you want to use something else, log in as root and then execute whatever shell you want to use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 10:54 AM
тАО05-29-2002 10:54 AM
Re: HP-UX 10.20 single user question
most certainly you will have to boot from the "core/install" CD-ROM to recovery from your failure.
Instead of installing you can use this CD-ROM in a menu-driven way to repair your boot-disk.
And never, ever change root's shell to something other than "/sbin/sh" - for a lot of reasons (*search* the forums for "+root +bash").
As soon as it is back in operation get "Ignite/UX" (free from the Application CD-ROMs, or from http:/software.hp.com/products/IUX ), install it and create a "make_tape_recovery" tape!
Then *next* time (there will be one ;-) you could simply boot from that tape and wait for about an hour - then you're back in operation.
Regards,
Wodisc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 10:54 AM
тАО05-29-2002 10:54 AM
Re: HP-UX 10.20 single user question
Since root's shell has been changed to a non-existent one (i.e. bash), will root be able to log in at all - even in single user mode? I'd test it but I'm not willing to sacrifice one of my systems.
Just curious,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 10:59 AM
тАО05-29-2002 10:59 AM
Re: HP-UX 10.20 single user question
I was also not very sure and thats why I wrote : Hope it helps
then I gave an option of trying with the CORE MEDIA Recovery CD.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 11:02 AM
тАО05-29-2002 11:02 AM
Re: HP-UX 10.20 single user question
I dug up an old 715 workstation and will test on that - I'll let you know.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 11:23 AM
тАО05-29-2002 11:23 AM
Re: HP-UX 10.20 single user question
Fascinating ;^)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 11:39 AM
тАО05-29-2002 11:39 AM
Re: HP-UX 10.20 single user question
I have no media what so ever, I got the machine from a garage sale so telling me to start from the core cd isn't going to apply to this situation, I also have no tape drive with this machine to make any form of backup/recovery.
Do you have suggestions on booting the machine and working around this problem in another way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 12:12 PM
тАО05-29-2002 12:12 PM
Re: HP-UX 10.20 single user question
Then do a vi on /etc/passwd file. This should solve your problem.
Pete:
It is working because in the single user mode it doesn't access the /etc/passwd file. Since it is not accessing the passwd file, it is not getting the shell (bash) what you have set in the passwd file.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 12:15 PM
тАО05-29-2002 12:15 PM
Re: HP-UX 10.20 single user question
you can't telnet into it, cause that isn't started in single user mode. when you boot it, can you see anything on the monitor? on my 715, there is a screen way at the beginning, right when the monitor warms up, that says press escape to halt boot. that should be the point when you can get in.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 12:16 PM
тАО05-29-2002 12:16 PM