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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ping,rlogin but not rsh or rcp

Status
Not open for further replies.

dickiebird

Programmer
Feb 14, 2002
758
GB
I can move around all our remote IBM6000's running AIX4.3.3
with rlogin as root to those sites, but I can't rsh or rcp
to rmach2 box. I can rcp or rsh to/from all the others and I can rsh or rcp from rmach2 OK.
/.rhosts on all machines are identical, naming each machine with root user ie rmach1 root
rmach2 root
/etc/hosts.equiv isn't necessary if .rhosts is set up, according to the manual.
I am using ftp to send files to the box, but want rcp to work.
Any thoughts ?
TIA
Dickie Bird (:)-)))
 
Hi Birdie,

Are you running rsh ash root or some other user?

I was facing similar problem when running that as an another user.

The problem was that it was required that suid-bit needed to be set on to be able to run rsh. Security risk? But that was a workaround and how it was set on our other machines.

machine:/:> which rsh
/usr/bin/rsh
machine:/:> ls -lia /usr/bin/rsh
25042 -rwxrwxrwx 2 root system 327100 Jun 27 2001 /usr/bin/rsh
machine:/:> chmod u+s /usr/bin/rsh
machine:/:> ls -lia /usr/bin/rsh
25042 -rwsrwxrwx 2 root system 327100 Jun 27 2001 /usr/bin/rsh
machine:/:> chmod ugo-w /usr/bin/rsh
machine:/:> ls -lia /usr/bin/rsh
25042 -r-sr-xr-x 2 root system 327100 Jun 27 2001 /usr/bin/rsh

If that is not the case then try to define also the IP-address to the .rhost file
somehow it doesn't parse right from DNS eventhough you could see machine with its short name.

Reg,

#Kimmers
 
Thanks but no luck, unfortunately
37306 -r-sr-xr-x 2 root system 327212 Jan 3 2002 /usr/bin/rsh

already set as above.
dbird on mach1: /u/dbird > rsh 145.224.208.46 df -k
Permission denied.

Any other thoughts ???? Dickie Bird (:)-)))
 
Hi,

Did you try to put the mach1's IP on the remote machine's (145.224.208.46) .rhosts file and do you have enough permissions to run the df-command there?

Assuming 145.224.208.45 is mach1's IP address then .rhosts-file on a remote should look like

145.224.208.45 mach1 username

(On .rhosts-file rw permissions for the user should be sufficient)

I also have (don't know if necessary) at /etc/hosts.equiv a line
mach1 username

#Kimmers



 
No help, huh?

If you find a solution can you pass the cure,

Regards,

#Kimmers
 
Thanks Kimmers - the priority to get a solution is currently low - other problems of higher importance
have come up.
I'll let you know if I get an answer! Dickie Bird (:)-)))
 
kimmers is on the right track. Make sure your .rhosts for root or whoever you want has it in their home directory. You should only need the host name in this file. /etc/hosts file should also contain the IP and host of both machines. This is how we do it and it works fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top