![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't login root account due to can't find root shell | neikel | AIX | 2 | 01-30-2008 07:07 PM |
| I need it to prompt me for a root password, so I don't have to log as root | lunchtime | UNIX for Dummies Questions & Answers | 2 | 06-25-2007 12:21 PM |
| how to access root priveliges if root password is lost | wojtyla | Linux | 1 | 02-18-2005 02:24 AM |
| Run non-root script as root with non-root environment | bubba112557 | UNIX for Dummies Questions & Answers | 2 | 12-02-2004 08:39 PM |
| Lost root password / Can't login as root | Perderabo | Answers to Frequently Asked Questions | 0 | 06-22-2004 04:40 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
root pwd
The root pwd on an hpux11i box was changed by an ex-employee. Is there anyway to reset it without shutting down the machine? If not how can I do it..
Thanks in Advance Brian
__________________
Brian Reigner |
| Forum Sponsor | ||
|
|
|
|||
|
Resetting root password
Try this, might help.
Logon on the system as root by either ssh or su and reset the root passwd as #/usr/lbin/modprpw -k root #/usr/lbin/modprpw -x root Now try to logon console using new root password
__________________
Hanwant Verma Software Engineer London, United Kingdom www.hanwantverma.com |
|
|||
|
Reset root passwd
This will work.....
Hi, just for convenience: Turn on your box Hold on the Escape key until a menu appears. Type 'boot pri isl' When the ISL> prompt appears type: hpux -is (if you have HP-UX 9.x type: hpux -is boot) The system is now booting in single user mode. When you get the root shell prompt (#) type: passwd root The system asks you twice for the new root's password. If you have done type: reboot Now your box reboots and comes normally up and you can login as root with your previous changed password.
__________________
Hanwant Verma Software Engineer London, United Kingdom www.hanwantverma.com |
|
|||
|
Your question is essentially how can you act as root without knowing root's password - that's the only way you can change root's password without being logged in as root or having su privileges (which I assume you do not).
The answer is that there is no legitimate way to do that. Unix security is designed to prevent that from happening. It may be that you could identify an exploit on your computer which would allow you to gain root privileges from a non-root account. But in doing so you run the risk of damaging either the run state or file system of your computer. Many hacks are detected because they break something on the computer. To avoid a situation like this in the future you could create an administrative account with a UID of 0 on your computers and have a manager keep the password locked away. The risk with these types of accounts is that since no one normally uses them, if they get compromised it is unlikely you'll notice until something else breaks. But they do give you an alternative path into the computer. I suspect that you're out of luck this time. As the other posters point out, you'll have to boot into single user mode to fix this. |
|
||||
|
HP-UX is robust but it has flaws...
While that is true, our rules state: These are not hacker boards so hacker related posts will be promptly deleted or moderated. -- Perderabo Last edited by Perderabo; 05-18-2004 at 05:10 AM. |
|
|||
|
1. Recycle power: either use reboot or hard-boot
2. Interrupt boot sequence by pressing "ESC" 3. When prompt IPL, choose "YES" 4. Type the single-user mode boot command: hpux -is 5. After entering single-user mode, use passwd command to change password 6. Reboot to multi-user mode 7. Done |
|||
| Google The UNIX and Linux Forums |