rhost configuration @RH AS3 Release 2
时间:2006-05-25 来源:jasonice
rlogin is not a big issue, but u will find every times u configure it , it has different problem.
so i just write down what i meet...
OS : RH AS 3 Release 2(Updated 2)
at beginning, we should start services, such as rlogin , rsh and rsync, it's important.
Tips: i suggest to open telnet service, some system is krb5-telnet service.
and add "pts/0,pts/1...,pts/10" to /etc/securtty in the end, this file allow root login from telnet.
after add those infomation , pls test by "telnet localhost".
then we might to stop services, like iptables, ipchains and ip6tables etc on , it's all firewall services.
u can stop unuseful services , like sendmail or something else.
Tips1: use setup ->system services-> to select services u needed -> reboot ; if u don't knwo how to use services command.
Tips2:before configure files, u need to start all services u need.
in linux , the host trust is very strict, so u need to write down information as below in .rhosts @/root and hosts.equiv @/etc , same info in both files
################
<hostname of localhost> <account of localhost>
<hostname of target host> <account of target host>
.....
################
it's the example:
################
RH1 root
RH2 root
RH2 ss7
################
Tips: plus "+" can not use in configure files.
the point is u should have same account at both hosts, such root@RH1 and root@RH2, it's one couple.
and u should config another important file 'hosts@/etc' , there are both hosts should be included. see as below:
########################
127.0.0.1 localhost LOCALHOST
192.168.1.1 rh1 RH1
192.168.1.2 rh2 RH2
########################
u can test by ping hostname of target.
then we do test to verify the configuration:
1.rlogin localhost or rlogin hostname
if successful, means ok , if not , means u need to add localhost and account to .rhosts and hosts.equiv @localhost
2. rlogin targethost
if successful, means ok , if not , means u need to add localhost and account to .rhosts and hosts.equiv @targethost
Tips:
u should chmod 755 to .rhosts and hosts.equiv
Final solution: we call it "boss solution"
after start all services u needed, delete all configure files(.rhosts and /etc/hosts.equiv), and rewrite it, then it's ok.
i don't know, but the way is good when u confused by all steps and configurations.
相关阅读 更多 +