Solved

Unix rlogin problem

Posted on 2004-09-13
3
329 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 21

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sed -- search an replace multiple pattern 11 101
Linux :how to provide sudo access to the user 13 116
Sed question 2 124
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 117
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

730 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