The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
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 11: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 03:21 PM
how to access root priveliges if root password is lost wojtyla Linux 1 02-18-2005 06:24 AM
Run non-root script as root with non-root environment bubba112557 UNIX for Dummies Questions & Answers 2 12-03-2004 12:39 AM
Lost root password / Can't login as root Perderabo Answers to Frequently Asked Questions 0 06-22-2004 07:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-05-2004
breigner breigner is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 21
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
  #2 (permalink)  
Old 05-05-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
The procedure is risky and may damage the system from a software standpoint. It should be done by an expert. In the worst case you will need to re-install the OS and relad your backup tapes.

Sign on as an ordinary user and type "sync". Syncer should be runining anyway, so this may not help much, but it's easy to do and it might help. Wait about one minute or so.

Turn off the system.

Turn it back on.

Interupt the boot process and boot into single user mode. The exact details of this vary from model to model. But basicly you boot from the primary path. And you want to interact with ISL. Once you have that ISL prompt, type "hpux -is".

This should bring the box to single user mode. If the rough shutdown damaged the filesystem too much, you may be in trouble. This is where a lot of expertise comes in handy....

Run "fsck -y" and hope that it can fix the filesystems. This can take a while.

Now run the passwd command or edit /etc/passwd. You may need to mount /usr and /var depending on how your disk is configured and what commands you use.

Unmount anything you mounted.
reboot.

This almost always works. HP-UX is rather robust. But you might want to contact the ex-employee to get the password. After all, he or she will need a good reference, so you should be able to get it.

Read these man pages...

man pdc
man isl
man hpux
  #3 (permalink)  
Old 05-06-2004
Hanwant Hanwant is offline
Registered User
  
 

Join Date: May 2004
Location: London
Posts: 4
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
  #4 (permalink)  
Old 05-06-2004
Hanwant Hanwant is offline
Registered User
  
 

Join Date: May 2004
Location: London
Posts: 4
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.
  #5 (permalink)  
Old 05-12-2004
Jerry Jerry is offline
Registered User
  
 

Join Date: May 2004
Location: Portland Oregon
Posts: 1
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.
  #6 (permalink)  
Old 05-18-2004
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
Talking HP-UX flaws

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 08:10 AM..
  #7 (permalink)  
Old 05-27-2004
iminus iminus is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 7
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0