CentOS 7 - Post Install - root question

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

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: 4530
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
Site Admin
Posts: 33218
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

GrandStar
Posts: 6
Joined: 2020/07/01 09:48:59
Location: Darlington

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: 1522
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!

User avatar
TrevorH
Site Admin
Posts: 33218
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply