I did something s… suboptimal. While adding new admin users to my local system I noticed they require ‘my’ password for sudo. Clicking around I ticked ‘Disable login’ under root user in YaST. No I’m not able to use sudo (my password doesn’t work even though my user belongs to wheel), nor edit boot options. Is there a way to recover root access on this machine?
https://en.opensuse.org/SDB:Recover_root_password should still work.
So if you are not using GRUB the only available way is the CD/DVD/USB_recovery_mode way.
If you have SeLinux enabled, don’t forget to issue touch /.autorelabel before rebooting, otherwise SeLinux will forbid access to the system.
Be prepared for a longer boot time on next reboot due to auto-relabeling.
First – Welcome to the openSUSE Forums!
Please be aware that, for the case of SELinux, if you have a large amount of user files the auto-relabelling of the system’s files will take more than a few hours.
- To disable SELinux at boot time, simply use the “selinux=0” kernel boot option.
- For the case of systemd-boot in place of GRUB, help for accessing the kernel boot options when booting is here – <1.8 systemd-boot>
@dcurtisfra that’s why we have the update-bootloader command no need to use external documentation. The only time I’ve seen a slow boot from relabeling is on MicroOS with Aeon…
Malcolm, the OP has no access to superuser privileges, so update-bootloaderdoesn’t work…
Thank you all for your help. I followed @OrsoBruno’s advice and it worked perfectly. SELinux relabeling was the crucial step. In the mean time I learned a lot about PAM, SELinux, and how to read the logs.
You’re all superstars!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.