Re: Boot normally, but give me a root shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would say to copy /usr/lib/systemd/system/getty@.service to /etc/systemd/system, except that doesn't seem to work as an override for some reason. So edit /usr/lib/systemd/system/getty@.service and change the ExecStart= line to "/usr/sbin/sulogin -e -p /dev/%I". Then lock the root password (passwd -l root) and reboot. Every console should say "Press enter for maintenance". Press enter and you have a root shell. Just be aware that updates could replace that file and then you're in trouble if you don't have another account to fix it from. If you can figure out how to make the service file override to work then that would be much better.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux