1836978 Members
2523 Online
110111 Solutions
New Discussion

root account disable

 
g700304
Super Advisor

root account disable

Hi,

Currently my root account got disable and how can I enable it back. I boot to single user mode and try to run the following command to enable it back.

# /usr/lbin/modprpw -k root" to unlock it. But I can mount /usr /var or /tmp

any other alternavite way to do it?

Please advice


9 REPLIES 9
g700304
Super Advisor

Re: root account disable

sorry, I mean I can't mount to /usr /var or /tmp
OldSchool
Honored Contributor

Re: root account disable

See Bill Hassell's reply (last entry) in this thread:


http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1092202
Patrick Wallek
Honored Contributor

Re: root account disable

If you are in single-user mode, you most certainly can mount /usr, /var and /tmp.

Do the following:

# vgchange -a y vg00
# mount /usr
# mount /var
# mount /tmp

Then you can do the 'modprpw' to reactivate root.
g700304
Super Advisor

Re: root account disable

Hi,

Will vgchange -a y vg00 gonna corrupt the filesystem?

# vgchange -a y vg00
# mount /usr
# mount /var
# mount /tmp

I notice the /usr are not in the vg00 and if I do fsck, will it corrupt my filesytem and change my filesystem after my reboot.

Thanks in advance
Patrick Wallek
Honored Contributor

Re: root account disable

No, a vgchange will not corrupt a file system. It merely activates the VG.

>> I notice the /usr are not in the vg00 and if I do fsck, will it corrupt my filesytem and change my filesystem after my reboot.

I'm not sure I understand. Are you saying that /usr is in a VG other than VG00? Is so, then you will need to activate that VG and then attempt to mount /usr.

A 'fsck' will not corrupt a filesystem by itself. An 'fsck' will attempt to fix any problems it encounters with a file system. So if the filesystem is corrupted after an fsck, it was more than likely in much worse shape before the fsck.
Mike Ingram_1
Frequent Advisor

Re: root account disable

Hi William,

I had this problem a number of years ago, and all I had to do was login as root on the console, and the account was reset automatically.
Not sure if this is the same problem?

Cheers.
Prashanth Waugh
Esteemed Contributor

Re: root account disable

hi willim
my problem was that root user was locked. means suppose i am giving username as a root and password which is set.That time system was not allowing me to do login.so we went into single user mode then change the root password by using passwd command.After that we went to multiuser mode.This is my system story .hope u wiil get some idea from this
For success, attitude is equally as important as ability
Safarali
Valued Contributor

Re: root account disable

Hi Willam
can you switch to su - with root passwd
it can be the passwd is expired you can login from console, did you try this option

Regards
Safar
g700304
Super Advisor

Re: root account disable

Yes, all this while I do it via the console and change the password and was successful, but after reboot to single user mode, I said "Account Disable agai". Well, I will go ahead I tried the suggestion you guys provides, and will get back to you all... thanks for all the suggestion.