LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 07-19-2005, 09:45 PM   #1
oosii
LQ Newbie
 
Registered: Jul 2005
Location: Sri Lanka
Distribution: RedHat 9, RedHat AS 2.1, Fedora Core 3, AIX
Posts: 1

Rep: Reputation: 0
rsh issue in AIX boxes


Please someone help me to resolve the rsh issue in AIX boxes.

I have 2 AIX machines (say sl19 and sl49) to be configured to enable the rsh connection from either way.

I add the .rhost file in all the required users’ home directory, also the hostname and the IP in etc/hosts file.

Now from sl19 to sl49 and from sl49 to sl19 the rsh is working fine for root user. The rsh is working fine for other users from sl19 to sl49 without any issues but not working from sl49 to sl19.

The following error message was noted during this unsuccessful login

rcmd2: socket: The file access permissions do not allow the specified action.

Further investigation I found from sl49 login as root user and issue the rsh command with the –l <user name> option allow me to login to sl19. But if you login as the user (not the root user) and issue the rsh command not working.

Since I need to login to the remote machine without password prompt for my testing purpose I need to resolve this issue.

Even I tried to add the hostname and the username in /etc/hosts.equiv file but that also not solve the problem.

Please somebody help me on this.

Thanks in Advance
Thaya
 
Old 07-20-2005, 07:45 PM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
May I recommend not using rsh at all!

Use ssh instead.

It's fairly simple to setup public keys between the users that need the connection and the connection is far more secure.

http://www.openssh.org
 
Old 07-21-2005, 07:34 AM   #3
Mark Taylor
Member
 
Registered: Apr 2004
Posts: 60

Rep: Reputation: 15
usually its the perms for ~/.rhosts (chmod 600) or the reverse name look up on the host your going to for the host your coming over from ... make sure you can resolv the hostname to the ip address (and visa versa) using the "host" command from both systems ... if your doing DNS, you may want to add

hosts = local, bind4

into the /etc/netsvc.conf file so that hostnames are resolved locally before using any DNS servers.

ssh is great and secure, setting up ssh-keys also make it very usable, but sometimes you just dont need to go to those lengths for security if your hosts are all behind firewalls and accounts are secure etc... horses for courses my friend.

HTH
Mark Taylor
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 09:34 AM
weird issue with RSH over a network, anyone seen this? govtlinux Red Hat 0 11-12-2004 09:39 AM
System hangs in update of AIX from 4.3.3 to AIX 5.2 jmurray67 AIX 2 07-25-2004 08:25 PM
VPN and AIX issue Avernus Linux - Security 7 09-17-2003 02:36 PM
win2000 boxes cannot map but winnt boxes can - same user! starbeetlechick Linux - Networking 0 07-24-2003 07:24 AM


All times are GMT -5. The time now is 10:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration