The Redhat recommended way of doing this changed in Redhat 7. I
discovered this while reading a forum in Linkdin. It's on pp
406-407 of the new System Admin guide on the Redhat site. It's basically
the same, but some things have been added:
- Interrupt the boot and edit with 'e'.
- Add init=/bin/sh to the end of the 'linux' line. Additionally, REMOVE the 'rhgb' and 'quiet' parameters from the 'linux' line. If you don't you probably won't be able to type on the console. That's what happened to me the first time.
- Ctrl+X to boot.
- / is read-only so remount the root filesystem: mount -o remount,rw /. If you don't do that you will get token manipulation errors.
- Use the passwd command to change the password.
- touch /.autorelable to take care of selinux. I've skipped this step before and was then unable to boot.
- run the following: "exec /sbin/init 5" and bring the system up. I don't know why you need the 'exec' command, but you do. Do not try to reboot it until it comes up the first time. It will hang and your changes may not be synced. I guess you could go to run level 3 as well.
Thanks Jim Caron for helping out Fourm.
- Interrupt the boot and edit with 'e'.
- Add init=/bin/sh to the end of the 'linux' line. Additionally, REMOVE the 'rhgb' and 'quiet' parameters from the 'linux' line. If you don't you probably won't be able to type on the console. That's what happened to me the first time.
- Ctrl+X to boot.
- / is read-only so remount the root filesystem: mount -o remount,rw /. If you don't do that you will get token manipulation errors.
- Use the passwd command to change the password.
- touch /.autorelable to take care of selinux. I've skipped this step before and was then unable to boot.
- run the following: "exec /sbin/init 5" and bring the system up. I don't know why you need the 'exec' command, but you do. Do not try to reboot it until it comes up the first time. It will hang and your changes may not be synced. I guess you could go to run level 3 as well.
Thanks Jim Caron for helping out Fourm.
This is the best place where we can get good collection of information with very useful content, thanks much for sharing here...
ReplyDeleteBest Online Software Training Institute | Unix Linux Training
You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. Salesforce Training India
ReplyDeleteIt's very useful article with informative and insightful content and i had good experience with this information.Enroll today to get free access to our live demo session which is a great opportunity to interact with the trainer directly which is a placement based Salesforce training India with job placement and certification . I strongly recommend my friends to join this Salesforce training institutes in hyderabad practical course, great curriculum Salesforce training institutes in Bangalore with real time experienced faculty Salesforce training institutes in Chennai. Never delay to enroll for a free demo at Salesforce training institutes in Mumbai who are popular for Salesforce training institutes in Pune.
ReplyDeleteThanks for giving great kind of information. So useful and practical for me. Thanks for your excellent blog, nice work keep it up thanks for sharing the knowledge.
ReplyDeletepython Training in chennai
python Course in chennai
The King Casino Company - Ventureberg
ReplyDeleteIt ventureberg.com/ was born worrione in 1934. The Company offers https://deccasino.com/review/merit-casino/ luxury hotels, 바카라 사이트 If you don't have a poker room in your house, then you'll find a poker worrione room in the