Red Hat Linux 7.2: The Official Red Hat Linux Reference Guide | ||
---|---|---|
Prev | Chapter 7. Pluggable Authentication Modules (PAM) | Next |
For security reasons, rexec, rsh, and rlogin are not enabled by default in Red Hat Linux 7.2. You should use the OpenSSH suite of tools instead. Information concerning the OpenSSH tools can be found in Chapter 10 and the Official Red Hat Linux Customization Guide.
If you must use rexec, rsh, and rlogin, and if you need to use them as root, you will need to make a few modifications to the /etc/securetty file. All three of these tools have PAM configuration files that require the pam_securetty.so PAM module, so you must edit /etc/securetty to allow root access.
Before you can log in as root using these tools, you first have to have them properly set up. First, install the rsh-server RPM, which is included with Red Hat Linux 7.2. See the Official Red Hat Linux Customization Guide if you need assistance using RPM.
Next, run serviceconf and enable rexec, rsh, and rlogin. See the serviceconf man page if you need help using this tool.
Finally, restart xinetd with /sbin/service xinetd restart to activate the serviceconf changes. At this point, all users except root will be able to use rexec, rsh, and rlogin.
To allow root to use these tools, add the names of the tools you wish to allow to the /etc/securetty. If you wanted to enable root login using rexec, rsh, and rlogin, add the following lines to /etc/securetty:
rexec rsh rlogin |
To allow root to log in using these tools via telnet (an even worse idea but necessary in some environments), add a few more lines:
pts/0 pts/1 |