CentOS 7 - Post Install - root question

General support questions
Post Reply
GrandStar
Posts: 2
Joined: 2020/07/01 09:48:59

CentOS 7 - Post Install - root question

Post by GrandStar » 2020/07/06 21:38:35

I have recently imaged a server with CentOS 7, downloaded from the internet (open source)

When I set up my server up as per customer specs i.e. timezone, hostname & ipv4 etc (The server will load into a terminal only environment only, no GUI) I then begin the installation. The next screen is where I can add users and add a root password.

My question is post iso installation:

1. Why can I not login directly as the root user?

2. I can login into the user I create, and then su to root! But,I can't login in as root directly (this is whilst working at the server locally - not remotely)

(Thank you in advance for any comments)

User avatar
jlehtone
Posts: 2931
Joined: 2007/12/11 08:17:33
Location: Finland

Re: CentOS 7 - Post Install - root question

Post by jlehtone » 2020/07/07 06:54:11

It is a security best practice to not allow root login. There are sudo, su, ksu for regular user to do priviledged tasks.

However, the default in CentOS 7 is to allow root login both on console and via ssh.
The "image" you use is more security conscious?

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7 - Post Install - root question

Post by TrevorH » 2020/07/07 08:42:20

Also, I am concerned that you say you get a text only install interface as that implies that something has already gone wrong by the time you get to that. Is this a VM and if so how much RAM did you give it? The installer needs at least 2GB.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

GrandStar
Posts: 2
Joined: 2020/07/01 09:48:59

Re: CentOS 7 - Post Install - root question

Post by GrandStar » 2020/07/07 19:38:02

@TrevorH, there is a GUI during the install process, it's post install it becomes GUI-less.

In the Software selection server infrastructure is selected.

This is is installed onto a industry standard HP server (not a VM)

lightman47
Posts: 1160
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: CentOS 7 - Post Install - root question

Post by lightman47 » 2020/07/07 19:43:41

The install itself indeed sports a GUI. When you get to the menu where you set source/destination/network settings there is also a software option. The default otherwise, as you've noticed, is no GUI.

Couple times myself!
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

User avatar
TrevorH
Forum Moderator
Posts: 29112
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7 - Post Install - root question

Post by TrevorH » 2020/07/07 19:44:38

So unless you selected some restrictive security level during the install, root is allowed to login at a cli on 7.8.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”