LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-24-2019, 04:04 PM   #1
igrossberg23
LQ Newbie
 
Registered: May 2019
Location: Portland, Oregon
Distribution: Fedora
Posts: 2

Rep: Reputation: Disabled
Skip login prompt entirely on boot?


Hi,

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!
 
Old 06-24-2019, 07:09 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,723

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
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
 
2 members found this post helpful.
Old 06-24-2019, 08:44 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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.
 
1 members found this post helpful.
Old 06-24-2019, 09:30 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
Quote:
Ideally I would like it to completely skip the login prompt and automatically log in to root.
This is not a good practice from a security--or any other--point of view.
 
2 members found this post helpful.
Old 06-25-2019, 02:39 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by igrossberg23 View Post
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.

But yes, it's possible:
https://wiki.archlinux.org/index.php...irtual_console
 
2 members found this post helpful.
Old 06-25-2019, 04:27 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
why (do you need that)?
 
2 members found this post helpful.
Old 06-25-2019, 05:47 AM   #7
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by igrossberg23 View Post
Hi,

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.

Why do you want to do this?
 
2 members found this post helpful.
Old 06-25-2019, 07:43 AM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,879
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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.
 
Old 06-25-2019, 08:05 AM   #9
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
This is why people in cybersecurity have jobs...sad to say though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora 10 - disable autorun prompt feature (or remove it entirely) ciacob Linux - Desktop 3 08-03-2010 08:25 AM
[SOLVED] problem adding ssh keys to skip password prompt vikas027 Linux - Software 27 09-26-2008 03:24 PM
Skip fingerprint prompt in SSH davoti Linux - Security 1 07-17-2007 01:36 PM
Mandrake 9.2's boot process entirely done in console mode before loading in X mode... mishmash Mandriva 6 02-17-2004 09:19 PM
How to boot Mandrake Linux faster (skip boot option) lava Linux - General 7 02-28-2003 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration