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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. fuser: command not found
  2. i3: command not found
  3. How to create partitions and file systems on DM-Multipath devices
  4. find: command not found
  5. CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image
  6. eject Command Examples in Linux
  7. eget: Easily install prebuilt binaries from GitHub
  8. How to Uninstall/Remove GNOME from CentOS/RHEL 7
  9. cpio: command not found
  10. gcov Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright