LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-03-2017, 02:01 PM   #1
crazy8tz
LQ Newbie
 
Registered: Apr 2017
Posts: 8

Rep: Reputation: Disabled
How to deny root login from VMware vCenter console


I need to deny direct logon access for root through the VMware vCenter VM console for several servers and need some expert assistance.

I found an article where I can deny root login access across the board by editing the /etc/passwd file and adding /sbin/nologin to the root record, but that also seems to prevent su to root from a different account.

If you know a better way, please assist. Thank you in advance.
 
Old 04-03-2017, 03:18 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Which distro are you using and which version?


I think what you're looking for is "Disabling root access using any console device (tty)" as described at
https://access.redhat.com/documentat...ot_Access.html

If you disable root from any console, do you have another way to get root access on the machine in event of problems?

I'm curious why you need to prevent root via the VMware vCenter VM console. Isn't authentication required to access that? Do you not trust the people who have access to your VMware environment? Servers I manage in a vSphere environment have root login locked out via SSH but allow it via the console in case we need to get in that way for some reason. The console can only be accessed by a few users and the vSphere environment only allows login from a few IP address ranges.

Edit: Do the servers have root login via SSH enabled? It is enabled on Red Hat 7 and CentOS 7 by default. That seems like something more to worry about than console access.

Last edited by arizonagroovejet; 04-03-2017 at 03:20 PM. Reason: typo fix and bit about SSH.
 
Old 04-03-2017, 03:44 PM   #3
crazy8tz
LQ Newbie
 
Registered: Apr 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you for the link, arizonagroovejet. I believe that will achieve the desired results. Here are my responses to your questions.

Which distro are you using and which version? Oracle (Red Hat) Linux 6.5

If you disable root from any console, do you have another way to get root access on the machine in event of problems? Just console with a sudoer or if possible, SSH (also with a sudoer.)

I'm curious why you need to prevent root via the VMware vCenter VM console. Since we are a retailer, it is required in order to be SOX compliant. I posed the same exact concerns you did and was told that it is still a requirement.

Do the servers have root login via SSH enabled? It is enabled on Red Hat 7 and CentOS 7 by default. That seems like something more to worry about than console access. I have already denied root access via SSH.
 
Old 04-03-2017, 03:57 PM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Is Oracle Linux 6.5 still supported? I can't find that information online but since it's a downstream of Red Hat seems like it should be EOL for a couple of years or so.
 
Old 04-03-2017, 06:25 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Seems to me you should maybe control who has access to VMWare?

Just sayin'
 
Old 04-04-2017, 08:38 AM   #6
crazy8tz
LQ Newbie
 
Registered: Apr 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by arizonagroovejet View Post
Is Oracle Linux 6.5 still supported? I can't find that information online but since it's a downstream of Red Hat seems like it should be EOL for a couple of years or so.
I believe it has support until 2020.
 
Old 04-04-2017, 08:47 AM   #7
crazy8tz
LQ Newbie
 
Registered: Apr 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Seems to me you should maybe control who has access to VMWare?

Just sayin'
Oh, we do indeed control who has access to vCenter, and the number of users is very small. Unfortunately, SOX auditing is not that cut and dry. I am pushing back on this item stating that control is managed through vCenter access, but if they reject our counter, we have to do what they say. SOX compliance drives company stock up or down based on scoring, so it's best to do as your told or the Board gets angry when that needle drops a half a tick.
 
Old 04-04-2017, 09:20 AM   #8
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,474

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by crazy8tz View Post
I'm curious why you need to prevent root via the VMware vCenter VM console. Since we are a retailer, it is required in order to be SOX compliant. I posed the same exact concerns you did and was told that it is still a requirement.
Who told you disabling console access was a requirement? Did you actually hear it from a SOX Auditor? I've been in companies that have been audited to a number of standards (most recently PCI-DSS 3) and logins via a console have never been a problem as long as there are sufficient access controls and procedures as to who can get at the console. Anything that seems excessive, check with the actual auditor, not whichever middle-manager is driving the process.
 
Old 04-09-2017, 07:34 AM   #9
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by crazy8tz View Post
I believe it has support until 2020.
Red Hat Enterprise Linux 6 has support until 2020. 6.5 does not. Presumably part of the SOX thing specifies that your OS must be supported by vendor though and if you are running an EOL version that will be flagged.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Red Hat 5.5 - Cannot Login from VMWare VSphere Console chief_officer Linux - Server 2 05-20-2013 12:39 AM
How to login as root on Fedora 14 from console dakupoto Fedora 8 11-03-2011 04:06 PM
only root can login on console, Fedora 7 mvanhorn Linux - General 4 03-30-2010 04:51 PM
users cant able to login in any console,but root can login. skumar.v Linux - Security 1 04-19-2008 06:57 AM
Only allow root login on console vvcat Linux - Security 4 03-20-2008 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:09 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