- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
04-21-2002 09:41 PM
04-21-2002 09:41 PM
Root Password
I have one qui. ?
How to get password of root if someone forget it.
I know its silly qui., but sometime in future this situation can arrise.
Thanks & Regards
william
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2002 09:51 PM
04-21-2002 09:51 PM
Re: Root Password
there is no way to know the root password again.
If your system is not a secured system , you
can boot your system in single user mode by
ISL>hpux -is
you will get root access without any passwords
now. edit /etc/passwd file and remove the root's encrypted password.
note : take a copy of password file first.
#passwd
give your new password now. you will be able to use the new password from that time.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2002 10:04 PM
04-21-2002 10:04 PM
Re: Root Password
your session as root anyway. So you will be able to change the password.
If you system is trusted and you have the
security policy box checked as below
"Require Login Upon Boot to Single-User State"
then you have a big problem.
One of the best ways to get around this is to install 'sudo'. One of the advantages of 'sudo' is that you don't need to rememeber the 'root' password.
You get all the information here as well as downloading a copy suitable to your OS version:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/
Cheers
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2002 10:09 PM
04-21-2002 10:09 PM
Re: Root Password
Apart from booting-up to single-user mode as already mentioned, if your single-user mode is secured, your only way out would be to attempt a security compromise of your system:
1) password crack
2) buffer overflow
3) other root compromise attacks
For password crack, if
1) You did not convert your system to trusted and you did not shadow your /etc/passwd file, and
2) The password you use for your root account is weak,
THEN you can attempt a crack on the password hash to retrieve the plaintext password:
http://www.users.dircon.co.uk/~crypto/download/c50-faq.html
For buffer overflow and root compromise attacks, IF your system is not updated with security patches, THEN you can download the attack programs to attempt a root compromise or buffer overflow of your system to gain root access.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2002 11:30 PM
04-21-2002 11:30 PM
Re: Root Password
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2002 11:45 PM
04-21-2002 11:45 PM
Re: Root Password
The password crackers will generate passwords, encrypt them and see if they match the encrypted version, but all for the sake of figuring out that root password is "iforget" is a bit of a long wait.
hpux -is can boot you into init S, where you get asked for no password, allowing you to change it to something new (although you never find out what the password was)
The -is can be protected securely at the BCH, hopefully you don't forget that password... cos that means opening the box.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2002 11:50 PM
04-21-2002 11:50 PM
Re: Root Password
I forgot to mention that you can also boot from the Support CD and run a Recovery Shell to modify the passwd file. With this, even if you enabled login for single user mode, you will still be able to tamper with your /etc/passwd file simply by booting from the Support CD, running the Recovery Shell, fsck the root VGs, mounting them and subsequently update /etc/passwd.
You can find the details at http://www.docs.hp.com
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2002 11:56 PM
04-21-2002 11:56 PM
Re: Root Password

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 04:47 AM
04-22-2002 04:47 AM
Re: Root Password
2 possible quick and dirty solutions,...
1. Rlogin from another server with root permissions and do a 'passwd'.
2. ftp into the system as someone with appropriate rights, get the /etc/passwd file, modify the root password to be empty, ftp back the /etc/passwd file, log on with no password and then change it. If no overwrite is allowed, try renaming /etc/passwd and then ftping the file.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 06:40 AM
04-22-2002 06:40 AM
Re: Root Password
You can not view the root password. However you can definately change it to your preffered password.
You need to boot the machine in single user mode by entering following command at your ISL Prompt.
ISL> hpux -is
Once you get the root prompt you can use passwd command to change the password. It will not ask you for old password.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 05:13 PM
04-23-2002 05:13 PM
Re: Root Password
2. Escape button press
3. Then the PDC step display
BOOT_admin> boot pri isl
4. ISL> hpus -is #boot to single-user mode
5. After single-user mode booting,
You have to remove passwd of root in
etc/passwd file
6. Then you have to booting by multi-user mode
# init 2
7. When the console login prompt display,
You can login by root. so this job don't
check password. then you can change root
password
# passwd root