Re: Boot normally, but give me a root shell

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

 



On 6 October 2016 at 23:55, Richard W.M. Jones <rjones@xxxxxxxxxx> wrote:
>
> Is there a way to get Fedora to boot into a root shell, without
> requiring a password?
>
> NOTE: I'm not interested in "emergency" shells and this is not for
> recovering a system.
>
> I want the (specialized, non-networked) system to boot as normal, all
> the way to multi-user.target, and then drop me to a root shell.
>
> Rich.
>

This seems to work with multi-user.target set as the default target:
# cd /etc/systemd/system/
# cp /usr/lib/systemd/system/getty@.service getty@tty1.service
# sed -i -e 's!ExecStart=-/sbin/agetty!ExecStart=-/sbin/agetty
--autologin root!' getty@tty1.service
# systemctl enable --force getty@tty1.service

-- 
Ahmad Samir
_______________________________________________
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