Process to give a root password
Assume I lost a root password and i require to give it, I tried to alter it through single user mode even though i am not obtain a password, then what is the other process to give a root password?
Expert
Login to single user mode and attempt below things:
A. passswd [ Change Password for root ] B. rm -rf /etc/nologin C. remove any "nologin" shell for root user into /etc/passwd file D. chage -l root then chage -E root E. passwd -u root F. chattr -i /etc/passwd /etc/shadow G. chmod 600 /etc/securetty H. vim /etc/rc.local --> then eliminate any line like say " /etc/nplogin " I. chsh root [ /bin/bash ]
Normal 0 false false
2000 Words A 62-year-old female with a history of type 2 diabetes mellitus and hypertension was admitted to a trauma center following a Motor vehicle accident. Examination revealed blunt thoracic and abdominal trauma and a fractured right femur. The patient was dyspneic, tachycardic, hypotensive, an
18,76,764
1946913 Asked
3,689
Active Tutors
1418229
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!