• 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. su: command not found
  2. acpi Command Examples in Linux
  3. How to Migrate CentOS/RHEL 6 iptables Rules to CentOS/RHEL 7 firewalld
  4. CentOS / RHEL LVM : Backing Up Volume Group Metadata
  5. named Command Examples in Linux
  6. Understanding OpenSSH Configuration Files
  7. poweroff: command not found
  8. Linux OS Service ‘kudzu’
  9. Understanding rsyslog Filter Options
  10. Beginners Guide to yum Configuration

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright