1833338 Members
2665 Online
110051 Solutions
New Discussion

change root password

 
Efim Kushnir
Frequent Advisor

change root password

Dear Sirs,

Our admin is leave and we don't know root password to L1000/HP-UX 11.11

When we try change password trought "set_parms root_passwd" under single use mode we see next message:

# set_parms root_passwd
/sbin/set_parms [730]: grep: not found
set_parms: Cannot find dialog for -- using English.
/sbi_setparms.d/15_root_passwd [56]: grep: not found

Can we change root password for succesful in to system or no ?
If yes please says as ?

BR,
Efim.
Look for the answers, do not stop !
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: change root password

Efim,

I would use the passwd command rather than setparms.

By the way, is this a trusted system?


Pete


Pete
Geoff Wild
Honored Contributor

Re: change root password

Is /bin mounted?

If yes, is /bin in your path?

echo $PATH

If not, then:

EXPORT PATH=$PATH:/bin

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Robert-Jan Goossens
Honored Contributor

Re: change root password

Hi,

# /sbin/mount -a
# vi /etc/passwd
and remove the enqrupted passwd field.

trusted mode

# /sbin/mount -a
# cd /tcb/files/auth/r/

and then delete the actual encrypted password from the root file, the field your looking for is 'u_pwd'.

Hope it helps,

Robert-Jan.
Efim Kushnir
Frequent Advisor

Re: change root password

now hothing mounted exluded / and /stand.

Look for the answers, do not stop !
Stuart Abramson_2
Honored Contributor

Re: change root password

1. Boot to single user mode (which you seem to know how to do).

2. mount -a
This will mount all of the file systems.

3. Set root passwd with "passwd root", as described above.

4. Reboot server with "shutdown -r".
You want to reboot to bring the server up normally. Single-user mode skips some stuff.

Don't let this happen again. Ensure that you know the root password before the system admin goes on vacation. Have a "backup" system admin lined up.
Efim Kushnir
Frequent Advisor

Re: change root password

Dear Sirs,

sorry to trouble your but one security was find password in notebook.

Thanks to all for help,
BR, Efim.
Look for the answers, do not stop !