Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsh ( another question )

Status
Not open for further replies.

visvid

Technical User
Jun 3, 2002
131
GB
Hi wonder if anyone can help. I have read the previous notes on rsh problems on this Forum , however i am experiencing the following problems.

I have created .rhosts files on both $HOME and ensured file permission is set to 600

I have also grep "rshd" /etc/inetd.conf on both boxes
shell stream tcp6 nowait root /usr/sbin/rshd rshd

$ grep "rshd" /etc/inetd.conf
shell stream tcp6 nowait root /usr/sbin/rshd rshd
kshell stream tcp nowait root /usr/sbin/krshd krshd

I have checked the /etc/hosts file to confirm correct name of the two hosts

when I try to rsh I get following error on one box:

Error 0 and on the other box I get

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


Any idea what and where I am going wrong ?


The user is not root
 

What are the filepermissions on rcmd2??

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
sorry I can not find file rcmd2 , any idea where it is ?
 
since last posting this I have chmod 664 the /etc/host.equiv

and it can now work one way but not the other, ( which is the way i want it to work :)

I get Error 0 , any ideas ? the boxes are both AIX but probably running diff version, not sure if that is the cause ?

Regards

visivd
 

AIX versions is not the problem. Normally the rcmd command must be setuid root to open a socket but I must admit that I can't find it either.

I'll look into it.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Hi there, friend of mine at work has now solved this :)

I have posted his results:

The problem was that the rsh, rshd, rcp binaries had their file permissions changed to 600. This should be set to 4555. Also, the .rhosts and the hosts.equiv files should be set to 600 - please ignore what I said earlier about them being 664.

I've tested both rcp and rsh between the two nodes and it works.......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top