Visit Jeremy's Blog.
Go Back > Forums > Other *NIX Forums > AIX
User Name
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.


  Search this Thread
Old 07-19-2005, 10:45 PM   #1
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
Old 07-20-2005, 08:45 PM   #2
Jerre Cope
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.
Old 07-21-2005, 08:34 AM   #3
Mark Taylor
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.

Mark Taylor


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 10:34 AM
weird issue with RSH over a network, anyone seen this? govtlinux Red Hat 0 11-12-2004 10:39 AM
System hangs in update of AIX from 4.3.3 to AIX 5.2 jmurray67 AIX 2 07-25-2004 09:25 PM
VPN and AIX issue Avernus Linux - Security 7 09-17-2003 03:36 PM
win2000 boxes cannot map but winnt boxes can - same user! starbeetlechick Linux - Networking 0 07-24-2003 08:24 AM > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 11:12 PM.

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