root passwd emergence konzola
tak jedem na RHCSA…
redhat6
- grub -a
- miesto rhgb quiet radsej init=/bin/bash
- mount -o remount,rw /
- mount | grep root —> chova sa divne, nic nevypisalo
- passwd
- touch / .autorelabel (pre selinux)
- exec /sbin/init
redhat7 postup a)
- grub -e
- miesto rhgb quiet radsej init=/bin/bash
- mount -o remount,rw /
- mount | grep root —> chova sa divne, nic nevypisalo
- passwd
- touch / .autorelabel (pre selinux)
- exec /sbin/init
redhat7 postup b) (zda sa korektnejsi)
- grub -e
- na koniec prepinac rd.break
- mount -o remount rw /sysroot
- chroot /sysroot
- passwd
- touch / .autorelabel
- exit 2x
rd.break enforcing=0
https://www.certdepot.net/rhel7-interrupt-boot-gain-access-system/
sef
20 Jan 17 at 8:10
how dracut works
https://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracutbootup7
sef
20 Jan 17 at 8:11