Solved

The Root Password has been forgotten.  Can we recover?

Posted on 2001-08-28
4
1,377 Views
Last Modified: 2007-11-27
Bonehead move here.  The root password on our HPUX system has been forgotten.  Is there any way to reset it?  Using the "passwd root" command prompts for the current password and we don't know what it is.  We can gain root privledges, so is there any way to edit the passwd file and reset the root password to no password?
0
Comment
Question by:lightfootd
4 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6435337
I have Solaris ...

 1. make df -k anw look who is mount /

 2. Boot from cdrom (The system mind is root)

 3.  mount /dev/dsk/c0t0d0s0 /a
     Example: /dev/dsk/c0t0d0s0 )

 4. With vi blank value for the password in the /etc/shadow

 5. umount /

 6. boot
0
 
LVL 38

Accepted Solution

by:
yuzh earned 150 total points
ID: 6435674
Hi lightfootd,

  >boot
  Interact with IPL ? Y
  SL>hpux -iS
  vi /tcb/files/auth/r/root
  vi /etc/shadow

  Note: use vi editor to delete the Password from the above files. then reboot your system. After system is booted up, the root have no passwd
, just type <Enter>, you need to use passwd command to reset the password.

   Cheers!
0
 
LVL 6

Expert Comment

by:bira
ID: 6436509
If anyone knows how to do it on AIX i am intersted
0
 

Author Comment

by:lightfootd
ID: 6437430
Editing those files did the trick.  Thanks.  However, I was not able to boot up in single user mode due to being asked for a login - and the only authorized login for single user mode is root.  So I just booted the system up normally, backdoored my way to root with "wrap_uid su - root" then edited the files you listed above - and it worked.
Thanks again....
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now