uninstall-rsh-server

Ensure the remote shell (rsh) server package is not installed on the system(s).

Maintainer

Ole Herman Schumacher Elgesem

Module stats

Total Downloads: 13
Updated: Dec 16, 2022

Installation version

Version
Released on Dec 1, 2022

Tags

Installation

                    
cfbs add uninstall-rsh-server@0.0.1
Description
Dependencies
Discussion

Remote shell (rsh) allows you to log in and send commands to another computer over the network. It is notoriously insecure, sending traffic in an unencrypted manner. In some implementations of rsh, passwords are also sent over the network in plaintext. rsh should no longer be used, as much more secure alternatives exist, such as ssh.

Recommendation: Do not have the rsh-server module installed on any of the machines in your infrastructure, as it presents a substantial security risk. Use CFEngine Enterprise’s software inventory to verify that it isn’t installed anywhere, and this module to enforce it (uninstalling the module if it appears somewhere). This ensures you are protected in the future, if somebody installs the package on a machine, or if somebody adds a machine with the package installed to the infrastructure.

Example

If you try installing the package and running the agent with this module, you should see it get uninstalled:

$ sudo apt install rsh-server
$ cf-agent -KI
    info: Successfully removed package 'rsh-server'

Adding exceptions

If this package is really needed on some hosts, you can add an exception with the exception_uninstall_rsh_server class. This class can be set from the Host specific data section in host info pages inside Mission Portal, the CFEngine Enterprise Web UI.

Dependencies

This module has no dependencies