1752746 Members
4672 Online
108789 Solutions
New Discussion юеВ

enable root login

 
SOLVED
Go to solution
himacs
Super Advisor

enable root login

Hi admins,

how to enable root login ?

i suspect my root a/c is locked

regards
himacs
5 REPLIES 5
Ganesan R
Honored Contributor

Re: enable root login

Hi,

Is it trusted or non-trusted?

root account get locked only in trusted system due to improper config. You should not set system security policies for root account.

Follow these steps.

1. Boot the system in to single user mode.

2. Mount /usr file systems.
# mount /usr

3. Use the following command to reactivate the 'root' account:
# /usr/lbin/modprpw -k root

4. Use the 'modprpw' command to null the password, so that the passwd command does not prompt for the old password.

# /usr/sam/lbin/usermod.sam -F -p "" root

5. Change the root account password.
# passwd root

6. Boot the system in to multi user mode.
Best wishes,

Ganesh.
himacs
Super Advisor

Re: enable root login

HI Ganesan,

Its not trusted system.

actually what happened is ,i disabled ssh root login my adding "permitrootlogin no" in sshd_config file.After that i was not able to login using root.
Then i logged in to the console and rolled back what i have done in sshd_config.

Now i can login as root.

But i dont understand,why i was not able to login as root.
Patrick Wallek
Honored Contributor

Re: enable root login

>>.After that i was not able to login using root.

How were you trying to login as root? Were you doing a telnet, ssh, what?
Ganesan R
Honored Contributor
Solution

Re: enable root login

Hi,

Answer is there in your post itself.

"permitrootlogin no"

This will disallow the ssh root logins.
Best wishes,

Ganesh.
himacs
Super Advisor

Re: enable root login

Hi Ganesh,

U R rite..
i use ssh in putty session to login..
i totally forgot that..

Anyhow thanks for ur time..
I have assigned full points