- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ROOT PAssword
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
03-03-2003 02:57 PM
03-03-2003 02:57 PM
I have to admit I have committed a mortal sin.... sorta . Have had to change many unix passwords, including root user password. Now I am unable to login as root because I have forgotten it. I am sure there is a way - via rebooting the machine - that I can reset the root passwd. Does anyone have a method?
thanks, Maria.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 03:00 PM
03-03-2003 03:00 PM
SolutionReboot the machine from the console. Interrupt the boot process when you get that message saying you have 10 seconds to do so. Then
GSP> bo pri
choose "Y" to interact with the ISL, and then boot to single user mode
ISL> hpux -s
You'll now be able to change the root password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 03:02 PM
03-03-2003 03:02 PM
Re: ROOT PAssword
From there you can:
1) mount all filesystems, execute SAM and change the password from there.
2) edit the /etc/passwd file (if your system isn't trusted, and remove the encrypted passwd, then execute the passwd command from the prompt to change it again
3) edit /tcb/files/auth/r/root file (if you system is trusted) and remove the encrypted passwd from the :u_pwd line so that the line looks like
:u_pwd=:
and then execute the passwd command to change the passwd again.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 03:03 PM
03-03-2003 03:03 PM
Re: ROOT PAssword
Its simple if you can rteboot the machine.
Simply reboot the machine and boot it in single user by interrupting at a message to enter in to ISL prompt.
Once you are on ISL prompt give following command to boot machine in single user mode.
ISL> hpux -is
Then you will be boote in single user and will get root prompt.
At the root prompt
# passwd
then change the passwd and do init3 u will be back to multiuser mode.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 03:06 PM
03-03-2003 03:06 PM
Re: ROOT PAssword
GSP> prompt type
bo pri
Say yes to interace whit ISL
Then at the ISL prompt type
hpux -s
You will the be in songle user mode.
Do a mount -a
then
passwd root
To change roots password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 03:20 PM
03-03-2003 03:20 PM
Re: ROOT PAssword
Maria.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 03:35 PM
03-03-2003 03:35 PM
Re: ROOT PAssword
One further suggestion.
Install 'sudo' so that even when you do change the password, you have one further backdoor method of fixing it. Instead of knowing the root password you do this, once it is setup.
$ id
maria
$ sudo su
password: (your password not root's)
#
You can get 'sudo' here already to install.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 04:14 AM
03-04-2003 04:14 AM
Re: ROOT PAssword
make sure you disable the use of 'sudo su' for other users because else anyone can become root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 05:37 AM
03-05-2003 05:37 AM
Re: ROOT PAssword
One other step you might consider: After changing passwords, write them down on paper. Put the paper in a sealed envelope and put the envelope into a locked container. Then if you need it you can find it.
Another method would be to keep a file somewhere that contains all the user IDs and passwords you are responsible for. The file should be encrypted (with a password you're not likely to forget) and permissions set so only you or another admin can read it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 03:16 PM
03-05-2003 03:16 PM
Re: ROOT PAssword
Don, I do actually use one of the methods you mentioned, but I am human and am prone to the occassional slip up. Thanks for making the suggestions though. Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 03:34 PM
03-05-2003 03:34 PM
Re: ROOT PAssword
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 04:26 PM
03-05-2003 04:26 PM
Re: ROOT PAssword
Maria.