Establish a trust relationship between hpunix hosts

Source: Internet
Author: User
Establish a trust relationship between hpunix hosts-Linux Enterprise Application-Linux server application information. For more information, see. 1. Add the other party and its own hostname & ip to the/etc/hosts file on the two nodes, for example:

Root @ RX2640_1:/# more/etc/hosts
192.168.8.193 RX2640_1
192.168.8.20.rac1
192.168.8.194 RX2640_2
192.168.8.252 rac2
127.0.0.1 localhost loopback

2. If you want to restrict user trust, create the. rhosts file in the home directory of the user and add the trusted host to the file, for example:

Root @ RX2640_1:/# more. rhosts
Rac2
Rac1
RX2640_1
RX2640_2

3. Modify the rlogin and remsh items in the/etc/inetd. conf file to cancel the comment, that is:

# Bootps dgram udp wait root/usr/lbin/bootpd
# Finger stream tcp nowait bin/usr/lbin/fingerd
Login stream tcp6 nowait root/usr/lbin/rlogind-B/etc/issue
Shell stream tcp6 nowait root/usr/lbin/remshd
# Exec stream tcp6 nowait root/usr/lbin/rexmcm
# Uucp stream tcp nowait root/usr/sbin/uucpd uuucpd
# Ntalk dgram udp wait root/usr/lbin/ntalkd
# Auth stream tcp6 wait bin/usr/lbin/identd

4. Repeat the inetd. conf file modified by the new application.

Root @ RX2640_1:/# inetd-c

5. Test Configuration:

# Rlogin remotehost
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.