• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Disable RSH Server in CentOS/RHEL

by admin

Question: How to completely disable RSH Server, and if necessary, uninstall it?

To disable rsh-server:

1. Verify if rsh-server package is installed:

# rpm -qa | grep rsh-server

2. If above command will return rsh-server package follow below action plan:

# vi /etc/xinetd.d/rlogin

specify there:

disable = yes

3. Remove rsh entry from /etc/securetty file and disable the rsh service to not start after reboot:

# chkconfig rsh off

Above command eg chkconfig does not stop rsh but rsh still runs as chkconfig is used to tell OS to start/stop certain services at run-level boot (start phase).

4. Restart the xinted service:

# service xinetd restart

To completely remove rsh-server package do:

# yum remove rsh-server

Rsh client package eg rsh.rpm is just client package and there is no security flaw inside it – its simply used as client tool to reach out other rsh-server enabled systems.

Filed Under: CentOS/RHEL, Linux

Some more articles you might also be interested in …

  1. How to Backup And Restore The RHEV Manager Engine
  2. last Command Examples in Linux
  3. Configure Persistent NIC Names of Network Adaptors in CentOS/RHEL using udev Rules
  4. CentOS / RHEL 6 : How to boot into rescue mode
  5. How to Create a MySQL Docker Container for Testing
  6. How to scan newly Assigned LUNs in Multipathd under CentOS / RHEL
  7. restorecon Command Examples in Linux
  8. Echo Command with Practical Examples
  9. Understanding RHV Cluster Migration Policy
  10. Intel I219-LM Centos 6 network failed to start

You May Also Like

Primary Sidebar

Recent Posts

  • What are /dev/zero and /dev/null files in Linux
  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright