Solved

Unix rlogin problem

Posted on 2004-09-13
3
327 Views
Last Modified: 2013-12-16
Hello, I am using Solaris 8 x86 version on a machine that is listed in Sun's HCL.  I have installed the recommended patches and the maintenance update collection so I am assuming I am up to date on OS stuff.  My current problem is rlogin will not function properly.  When I sign on to the initial machine, I must always enter a password.  I have verified that the host name of the machine I am using to initiate the rlogin from is entered in the hosts.equiv of all (3) the machines I wish to login to.  What else can I check to fix my rlogin problem?
0
Comment
Question by:jande2
3 Comments
 
LVL 20

Accepted Solution

by:
tfewster earned 125 total points
ID: 12048841
First, I have to say - Don't use rlogin, use ssh, which can also be set up so you don't need a password.

Back to the immediate problem:
- If you're trying to rlogin as root, you need usually an entry for the "client" machine in /.rhosts on each of the "target" systems.  /etc/hosts.equiv is only for non-root users on most Unixen

- The "target" systems must be able to resolve the IP address of the "client" system to a hostname, which is then checked against /etc/hosts.equiv (or an rhosts file). If you're not using NIS or DNS, just put an entry for the "client" in the /etc/hosts file of each of the "targets"
0
 
LVL 10

Expert Comment

by:Nukfror
ID: 12050753
Solaris systems have rsh .rhosts authentication disabled by default.

Check your /etc/pam.conf for the following. If the pam_rhosts_auth.so.1 lines are commented out, uncomment them - or it depending on if you want both or just one of them.

#
# rlogin service (explicit because of pam_rhost_auth)
#
# rlogin        auth sufficient         pam_rhosts_auth.so.1
rlogin  auth requisite          pam_authtok_get.so.1
rlogin  auth required           pam_dhkeys.so.1
rlogin  auth required           pam_unix_auth.so.1
#
# rsh service (explicit because of pam_rhost_auth,
# and pam_unix_auth for meaningful pam_setcred)
#
# rsh   auth sufficient         pam_rhosts_auth.so.1
rsh     auth required           pam_unix_auth.so.1
0
 

Author Comment

by:jande2
ID: 12088677
Thank you so much for the info.  i agree that rlogin should not be used, but there are other admin people that do not want to use SSH at this time.  Hopefully I can talk them out of using rlogin in the near future.
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question