I lost a root password and i need to give it, I treid to
change it through single usermode even though i am not get
a password, then what is the other procedure to give a root
password?
Answer Posted / kvenkat
Login into single user mode and try below things:
1. passswd [ Change Password for root ]
2. rm -rf /etc/nologin
3. remove any "nologin" shell for root user in /etc/passwd file
4. chage -l root then chage -E root
5. passwd -u root
6. chattr -i /etc/passwd /etc/shadow
7. chmod 600 /etc/securetty
8. vim /etc/rc.local --> then remove any line like say "
/etc/nplogin "
9. chsh root [ /bin/bash ]
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is env command in linux?
How do I list all processes in linux?
What does cd – command do?
What is grep command in linux with examples?
What are the basic command in linux?
What is the command to see on which port which service is running?
How do I check terminal history?
What are whois tools?
What is top command in linux?
How cp command works in linux?
What is command example?
What does chmod 644 do?
I am using RedHat 6.3 in I wanna to install and configure zimbra mail. Can anybody tell me what are the RPM packages required for zimbra mail ? Where can I get those RPM packages ?
What is history command in linux?
What does in makefile do?