Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What the command used for list the contents of your home directory, current directory and all subdirectories?

932


How often do you use grep command and how in Linux operating system?

1076


What does curl command do in linux?

1004


How can we increase disk read performance in single command?

1008


What is gnu in linux?

989


What does the command env do?

968


If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?

972


How do you execute more than one command or program from a single command line entry?

933


What is ls command and what it does?

959


You want to verify which lines in the file kickoff contain ‘bob’. Which of the following commands will accomplish this?

968


What does the ps command do in linux?

973


What signal is ctrl c?

924


why is the tar command used?

1013


Is llvm a virtual machine?

973


How do you run a command for a limited time?

987