root pwd


 
Thread Tools Search this Thread
Operating Systems HP-UX root pwd
# 1  
Old 05-05-2004
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  
Old 05-05-2004
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  
Old 05-06-2004
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  
Old 05-06-2004
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  
Old 05-12-2004
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  
Old 05-18-2004
Computer 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 09:10 AM..
# 7  
Old 05-27-2004
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

$pwd

Hi all,when I cd to an environment variable "cd $MYDIR, if I type pwd, I don't the path to the environment variable dir I cd to. Appreciate the help, regards..Abbya (5 Replies)
Discussion started by: abbya
5 Replies

2. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

3. UNIX for Dummies Questions & Answers

$PWD vs `pwd`

Hi, can anyone expalin the real importance of PWD as a variable. However pwd command and $PWD is going to give the same result, then why do we have 2 different things. Please give some example which illustrates the difference between both. Thanks (9 Replies)
Discussion started by: pandeesh
9 Replies

4. AIX

sync samba pwd with aix5.3 pwd

currently, my samba login works just fine. i want my clients to use aix5.3 account to login to samba so they don't have to change samba pwd and aix pwd. i googled, and vi /usr/lib/smb.conf per some of knowledge base, but i could not get to work. aix5.3 and samba 3.0.24.0 thanks in advace..... (2 Replies)
Discussion started by: tjmannonline
2 Replies

5. UNIX for Advanced & Expert Users

echo ${PWD#${PWD%/*/*}/}

Can anyone explain this in detail ... echo ${PWD#${PWD%/*/*}/} Thanks in Advance (1 Reply)
Discussion started by: sakthi.abdullah
1 Replies

6. UNIX for Dummies Questions & Answers

pwd

Home directory mounted on one local system as /home/username, same directory mounted on a remote system as /home/engr/username. How to use command to use remote host pwd. For example rsh <remote host> ls -l ~pwd (2 Replies)
Discussion started by: bugsandbunny
2 Replies

7. UNIX for Advanced & Expert Users

root pwd expired

Dear friends, I am using linux os . my root passward has expired suddenly. in command prompt iam giving su- and password it is saying that your root password has expired . how to get my root password. anyone pls rep. rajan (3 Replies)
Discussion started by: rajan_ka1
3 Replies

8. Shell Programming and Scripting

help on PWD

Hi, We all know that pwd (or echo $PWD) gives us the present working dir as output.... but my doubt is that I'ld like to know how to get the present working folder - I mean - name of the current folder alone.. using pwd command I get the full folder name (right from root path)... I need to know... (2 Replies)
Discussion started by: mohanprabu
2 Replies

9. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

All, I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies

10. UNIX for Dummies Questions & Answers

PWD env variable for root

How do you get the $PWD env variable set for root? I know it's automatic for korn and other shells, but root uses /usr/bin/sh. (5 Replies)
Discussion started by: bcole23
5 Replies
Login or Register to Ask a Question