Lost logins
I currently have a satellite server within my offline environment, and i have recently taken over this network. Over the past couple of years there have been multiple administrators to this system. However prior to my predecessor the password has since been lost.
Is there a way i can live boot to change a satellite servers root password?
or
Is there a specific way to boot into a commandline interface?
At this point in time i dont know whether i am on Satellite 6 or 7.
Any information would be very grateful at the moment, as i am lost at this point.
Responses
edited, see next post I made, apologies
Liam, try this link from the Red Hat documentation, I used it once and it worked. scroll down at that link
Regards,
RJ
Sorry I missed that first try, I know we get trained on root recovery in RH classes.
That being said, here's a more efficient way. Now if someone put a password on grub, you might need a boot DVD. If it is VMware, you might need a boot ISO.
For Red Hat systems particularly running SELinux in Enforcing mode, this is a superior way to deal with resetting the root password and the relabeling of /etc/shadow, vs. doing a "touch /.autorelabel" which hits everything. This is particularly noteworthy if a system has a giant RAID or SAN attached.
Credit, Red Hatter
https://access.redhat.com/solutions/918283#comment-1274541
- At the beginning of the boot process, at the GRUB 2 menu (Kernel list), type the e key to edit the kernel
- Move down to the kernel line (the line starting with linux16)
- Remove rhgb quiet using the backspace key.
- Add rd.break enforcing=0
NOTE: you might have to make "console=tty0" in step 4 as well depending if it's virtual or not, and other factors - Press Ctrl x to resume the boot process. NOTE: instead of doing #6 below, instead at step #3 above, change "ro" to "rw" in the grub line
- # mount –o remount,rw /sysroot
- # chroot /sysroot
- # passwd
- Retype the password
- Type exit twice to continue the boot process
- Log in as root
- # restorecon -Rv /etc/shadow
- # setenforce 1
Let us know how it goes
Regards
RJ
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
