Discussion Locked

RLOGIN PROBLEM

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

HOW TO DISABLE RLOGIN IN LINUX ?
OR HOW TO GIVE SELECTIVE RLOGIN RIGHTS FORM
REMOTE NETWORKS?

3 replies

by stillatit

rlogin is one of the services started by inetd. To completely disable rlogin, edit the configuration file for inetd, which is normally /etc/inetd.conf and comment out the line which calls rlogind. Rlogin will stop working at your next reboot, or thenext time your force inetd to read its configuration file.

When you use rlogin to access a system, you need a password for the username you are logging in as unless the user's home directory has a .rhosts file in it which names the computer you are logging in from, or unless a /etc/hosts.equiv exists with that system name in it. Some sites prohibit users from keeping these files around (and enforce the restriction with a cron job that deletes these files).

Warning - rlogin, rcp, rsh, andrexec are tied together in that the .rhosts file that enables one enables all, and they have enough cross-functionality that one can give you the others. Example - you may disable rlogin, but if I can rexec a shell or an xterm session, I can still get in.

If your "remote" networks are remote enough to be on the far side of a firewall, you can block/allow sites from the firewall.

Good luck.

This discussion is closed to new replies.