Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm working with the server version of Fedora 29 which is command line only. I'm planning to power cycle the whole system and log some information each time using remote power control. The issue I'm having right now is that every time I reboot I get to the login prompt and have to manually enter in username/passwd. Ideally I would like it to completely skip the login prompt and automatically log in to root. I've already removed the password from root so I only type "root [Enter]", but I'd like to skip even that step so I can leave the system power cycling by itself. It feels like there should be an easy way of doing this, but everything I find online assumes access to a GUI, which isn't helpful in my case.
I don't know if that's possible...and I certainly have an opinion about the wisdom of that, or not having a root password*, but I want to point out that a server need not be logged into at all following a reboot. It should come up, start the necessary (configured) processes and work just fine without anyone logging in to it.
Why do you see entering a login and password at the command line as a problem?
*my opinion: This is a really BAD idea! If the server is publicly accessible, then anyone who connects via ssh and types root <enter> is in your system and can do anything they want. My
It depends. I have some old SBC computers that automatically logged in as root. Granted they were used as standalone devices and only had a serial port for the system console. Puppy linux auto logs in as root.
I don't totally get what the OP is trying to accomplish nor the environment and agree generally it is a bad idea.
You should be able to find how to create a systemd getty service to auto login as root via a quick web search.
Ideally I would like it to completely skip the login prompt and automatically log in to root. I've already removed the password from root so I only type "root [Enter]", but I'd like to skip even that step so I can leave the system power cycling by itself.
Ouch, ouch ouch.
And again: empty root password? Ouch, ouch ouch.
You shouldn't be allowed on the Internet. Seriously. You're probably pwned already.
I'm working with the server version of Fedora 29 which is command line only. I'm planning to power cycle the whole system and log some information each time using remote power control. The issue I'm having right now is that every time I reboot I get to the login prompt and have to manually enter in username/passwd. Ideally I would like it to completely skip the login prompt and automatically log in to root. I've already removed the password from root so I only type "root [Enter]", but I'd like to skip even that step so I can leave the system power cycling by itself. It feels like there should be an easy way of doing this, but everything I find online assumes access to a GUI, which isn't helpful in my case.
Is there a way to do this?
Thanks!
This is like saying; you never want to get the key out and unlock your front door of your home, so take the door out all together.
As pointed out by Ondoho, it appears to be possible, and I haven't followed up much on that reference. Like many others here, it is not a direction I would concentrate on.
Probably more helpful to update and indicate if you have some intentions other than typing convenience.
For instance do you see logging in as a barrier to starting some processes? This is a server, and it's intended to be headless, and act as a host system which various persons can attach too and utilize the processing power of that server. Or it may be hosting services that are accessible by hostname or IP address, such as a home media or file server.
Maybe it's just a system you have the server version installed on, you are using it as a desktop to explore and learn. Who knows, but the advice here from people is not intended to just make arguments about your question. Instead people are familiar with the varieties of things one may do with a server which extend beyond logging in. So, hence the comments and questions about what you are trying to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.