1834882 Members
2409 Online
110071 Solutions
New Discussion

root unlocking

 
himacs
Super Advisor

root unlocking

Hi Admins,

Actually i want to unlock the root passwd in non-trusted system.

I know the procedures of the same in trusted node.But what abt non-trusted...

My server is B.11.23 integrity

Regards
himacs
6 REPLIES 6
TTr
Honored Contributor

Re: root unlocking

Passwords (root and non root) do not get locked automatically on non-trusted systems. What exactly happened? Either the password is forgotten, or the password field in the password file was edited incorrectly.

Unless you have another login with UID=0 you will have to crash the server and boot up in single user mode, mount all filesystems and edit the password file to blank out the password field (or run the "passwd root" command).
Suraj K Sankari
Honored Contributor

Re: root unlocking

Hi,
Do you have any user with equivalent to root means his uid will be 0 if yes then you can logging with this id and reset the root passwd.
If you don't have the same then do you have sudo access if yes then sudo -su will take into root .

If sudo also not there then you need to reboot into single user and there you need to set the root passwd.

Suraj
himacs
Super Advisor

Re: root unlocking

Hi

Thanx for the response.Actually i forgot the passwd.I changed the passwd in single user mode by using /sbin/passwd command.

But if i remove password field in /etc/passwd,
i can login to the server with blank passwd?

regards
himacs
TTr
Honored Contributor

Re: root unlocking

Yes, in single user mode you can remove the password field in /etc/passwd. You can also use the "/sbin/passwd root" as well, if I remember correctly it does not ask for the old password.
Hakki Aydin Ucar
Honored Contributor

Re: root unlocking

this is asituation I just experienced with my test server, 11i v1 and un-trusted; root password locked somehow.

need to go console and go into single user mode like above described , from /etc/passwd delete the password field to logon password less. .

In my case , I believe, when I trying to adjust min and max expiration dates ,that root user to change his / her password at the next login attempt like issuing this command:

# passwd -x 0 -n 0 root
TTr
Honored Contributor

Re: root unlocking

> ...root password locked somehow.
>...trying to adjust min and max expiration dates

That is an expired password. There is a difference between a locked account and an expired password. With a locked account the old password is never referenced and usually there is an asterisk in the password field. The account can only be unlocked by the superuser by specifying a new password. An expired password is still in the password field. The account owner is asked to enter the old password before it is replaced by a new one. The superuser as always can reset it without specifyng the old password (unless you are talking about the superuser pasword).