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!
CentOS 7

Another MySQL daemon already running with the same unix socket

Share on LinkedIn

When you run into this problem, you can delete or move the mysql.sock file.

In this instance, we just removed the file:

 rm -rf /var/lib/mysql/mysql.sock

In this instance, we just moved it to a .bak file.

mv var/lib/mysql/mysql.sock /var/lib/mysql/mysql.bak
service mysqld restart

Restarting the service creates a new entry called mqsql.sock

How To Change Hostname On CentOS 6.5

There are 3 steps to this process.

First, change the hostname

hostname <whatyouwantittobe>

Second, change the hostname on the adapter

nano /etc/sysconfig/network

Ctrl+X -> Y -> Enter

And last, restart network service

service network restart