1753500 Members
4247 Online
108794 Solutions
New Discussion юеВ

root password issue

 
SOLVED
Go to solution
Charles McCary
Valued Contributor

root password issue

Group,

here's the scenario:

1) We are able to remsh to the system, so we can get to a root prompt.

2) We want to change the root password, but we don't know the OLD password.

3) HPUX 11.11 trusted system.

Thoughts:

Can we simply?
erase the u_pwd field in /tcb/files/auth/r/root


11 REPLIES 11
Patrick Wallek
Honored Contributor

Re: root password issue

Yes.

To have a null password the line needs to look like:

:u_pwd=:\
Charles McCary
Valued Contributor

Re: root password issue

Patrick,

thanks...no need to go to single user mode right?
Vivek Bhatia
Trusted Contributor

Re: root password issue

Hi Charles,

Yes you can do that by editing the file.

/tcb/files/auth/r/root

Remove the encrypted content from mentioned between.

:u_pwd=:\

And no need to go to single user mode.

Regards
Vivek
Vivek Bhatia
Trusted Contributor

Re: root password issue

For Example , if you have a entry like this.

:u_pwd=XXXXX:\

Then Remove XXXXX (encrypted content from the file) and that will allow you to login with empty password.

Vivek
OldSchool
Honored Contributor

Re: root password issue

"Patrick,

thanks...no need to go to single user mode right?"

how do you propose to login as root to make the change then?
Charles McCary
Valued Contributor

Re: root password issue

See #1 in original question...we have root access, just not the old password. thanks.
Charles McCary
Valued Contributor

Re: root password issue

I guess my main concern is doing this "on the fly" in mulit-user mode. I don't want something to get corrupted.
OldSchool
Honored Contributor

Re: root password issue

ah....missed that bit...yes, you can do it in multiuser. once you "unset" it as described above, simply log in and set it to whatever new value is desired.
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: root password issue

Hi Charles,

Actually if you have root access (remsh) you can do this on the fly.

# vi /tcb/files/auth/r/root

Remove the password hashed field and save.

# passwd root

Regards,
Robert-Jan