Discussion Locked

rlogin problems

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We have two Solaris boxes where we need to rcp files backwards and forwards. We have setup the .rhosts file. We can only rcp files if we use the root credentials. We would like to be able to use this function for any user. We have tried this, including the .rhosts file in the home directory of each user, however we keep getting rcmd: Socket: Permission Denied Any help in resolving this will be greatly appreciated. Thanks in advance

5 replies

by nikki96

From a help document...

"the rsh (or remsh on HP) must have uid-s bit set to call rcmd with root privilege. Do 'chmod u+s rsh' (or chmod u+s remsh on HP) to fix this problem. The result should be "-rwsr-xr-x".

Another help file notes this as well.

chown root /usr/bin/rsh /usr/bin/rcp /usr/bin/rlogin
chmod 4555 /usr/bin/rsh /usr/bin/rcp /usr/bin/rlogin

HTH
~nikki~

by qnex

I am not sure if it will work on Solaris, but rlogin/rsh is a piece of quite old and well stablized software, so it might.
Try to set up /etc/hosts.equiv file (your directory may differ, see man rlogind. This file contains list of hosts which can freely rsh/rlogin to given host.
Also make sure that rlogin/rsh binaries are SUID root (rlogin/rsh need to allocate privileged (<1024) ports) and if you insist on having .rhosts in each users' dir, make sure they own these files (rlogin/rsh may check that for the sake of security).

This discussion is closed to new replies.