redhat

Security Vulnerability Remediation – rlogin

Rlogin starts a terminal session on remote hosts. This appears as a HIGH vulnerability to some security scanners like Nessus. This is a real easy vulnerability to correct. Just comment out login in the /etc/inetd.conf file.

vi  /etc/inetd.conf

Search for the login entry

/login

Output

login  stream  tcp6    nowait  root    /usr/sbin/rlogind       rlogind

Comment it out

#login  stream  tcp6    nowait  root    /usr/sbin/rlogind       rlogind

Save and close

:wq!

Learn Python For Free

I’m constantly working on honing my existing skill but I’m just as active in learning new ones. I try to follow industry trends by staying active in a handful of forums and get a ton of email subscriptions. So many it’s hard to even keep up most of the time.

One very important skill set to learn or stay current with as a System Administrator, System Engineer, Cloud Engineer, etc is knowing how to script. I’ll be the first to admit that scripting is not currently one of my strengths. I’ve worked with Bash Shell scripting and PowerShell a little. I’m making the plunge to learn Python. It’s a programming language and a very powerful scripting tool. I’ve heard beginners find the clean syntax and indentation structure easy to learn.

I will update this post with new information as it comes available. Maybe some of my readers will be willing to add some resources they’ve used to learn Python. In any case, here’s a good starting point:

Get your resources here:
Python.org

Learn Python basics here:
Learn Python at CodeAcademy.com

Test your code, not just Python!
Coding Ground

redhat

How To Install GUI on Red Hat or CentOS

So you installed Red Hat or CentOS 7 using minimal install and all has been well. Now, you find that you’d like to install the GUI and don’t want to re-install the OS from scratch. No problem.

Start by installing yum-utils

yum install yum-utils

To list software groups, enter

yum grouplist

Output will be similar to this

Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * base: mirror.cisp.com
 * extras: mirror.fdcservers.net
 * updates: www.gtlib.gatech.edu
Available environment groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Basic Web Server
   Virtualization Host
   Server with GUI
   GNOME Desktop
   KDE Plasma Workspaces
   Development and Creative Workstation
Available Groups:
   Compatibility Libraries
   Console Internet Tools
   Development Tools
   Graphical Administration Tools
   Legacy UNIX Compatibility
   Scientific Support
   Security Tools
   Smart Card Support
   System Administration Tools
   System Management
Done

To install “Server with GUI” group, enter:

yum groupinstall "Server with GUI"

Once the installation is finished, you need to change system’s runlevel to runlevel 5. Changing runlevel on RHEL 7 and CentOS 7 is done by use of systemctl command.

systemctl enable graphical.target --force

Depending on your previous installations you may need to accept Redhat License after you reboot your system.

GUI-install-license-infoGUI-install-license-info-accept