1829594 Members
1614 Online
109992 Solutions
New Discussion

route table and rlogin

 
SOLVED
Go to solution
emily_3
Frequent Advisor

route table and rlogin

hello,

My system's platform is linux redhat, and I have two questions:

1. How to permently change the route table, which file? I know i could use # route ....
command to change it temporally, but after I reboot the system, all the changes are gone.

2. I could be able to # rlogin A from this system, but in A system I couldn't rlogin to this system. it always prompt for password, and even I key in the correct password, but still failed. Any file is controlling this?

Thanks.
5 REPLIES 5
Roshan Sequeira
Advisor

Re: route table and rlogin

Add the route commands to rc.local. Take a look at http://linux.ittoolbox.com/documents/document.asp?i=2433 for details.

BTW, on Redhat, static routes added through the redhat-config-network tool persist across reboots. Not sure where these route entries are stored though.
Roshan Sequeira
Advisor

Re: route table and rlogin

On Redhat, routes added through redhat-config-network are saved in files eth0.route, eth1.route etc. in the /etc/sysconfig/networking/devices directory.
Stuart Browne
Honored Contributor
Solution

Re: route table and rlogin

Depending on what type of route it is depends on where you want to change it.

The simple answer is the rc.local, but that takes control away from any of the GUI type of interfaces that are written.

To do it the 'RH Way', you modify either /etc/sysconfig/network (for a default route), or /etc/sysconfig/static-routes for other partial routes, or interface based routes.

As for the 'rlogin' thing, there are a number of possible reasons.

With the description you've given, it sounds like you're the 'root' user. BY default, a RH system will not allow the root user to log in directly to a pseudo TTY (telnet, rlogin etc.).

There are two ways around this:

modify /etc/securetty, add 'rlogin'.

modify /etc/pam.d/rlogin, remove the line 'auth required /lib/security/pam_securetty.so'

Both of these options have the same end goal: allow root to 'rlogin' via a pseudo-tty.

If it isn't the root user, and you're still getting the error, then I'm picking it's the permissions on your .rhosts file. It should be 600 (-rw-------).

Have fun.
One long-haired git at your service...
emily_3
Frequent Advisor

Re: route table and rlogin

hello Stuart Browne,

Thanks. it did work.

i would like to know what's the purpose to add "rlogin" entry in /etc/securetty?
Where can I find the detailed information about the different "auth entry" inside /etc/pam.d/rlogin?

Regards.
Stuart Browne
Honored Contributor

Re: route table and rlogin

On a RH system, /usr/share/doc/pam-*/txts/ has all the documentation in text format (there's HTML and Poscript there too!).

The pam_securetty.so has hardwared 2 (or 3?) overrides. rlogin, rsh are two of them, to allow those services to go in as root (which kidna defeats the purpose, but hey!).
One long-haired git at your service...