Solved : rcmd socket permission denied
Recently I was stuck with one problem in linux configuration. I wanted to rsh to one machine A from other machine B but I was continuously getting “rcmd socket permission denied” error.
Command was : rsh bbb.bbb.bbb.bbb –l username
aaa.aaa.aaa.aaa is IP address of local machine
bbb.bbb.bbb.bbb is IP address of remote machine
This are the steps I performed to solve the problem after lots of googling.
1) Open the .rhosts file on remote machine B for the ‘username’ and add this line.
aaa.aaa.aaa.aaa username
+ root
2) Open the /etc/hosts.equiv file on remote machine B and add this line.
aaa.aaa.aaa.aaa username
+ root
3) Open /etc/pam.d/rsh file and added “promiscuous” to pam_rhosts_auth.so
auth required pam_rhosts_auth.so promiscuous
4) Add rsh in to /etc/securetty file
5) Permissions and ownership of .rhosts file is changed to eligible one.
6) Run ‘which rsh’ to find out which rsh is used. Suppose it /usr/bin/rsh. Then change permission of /usr/bin/rsh by ‘chmod 4755 /usr/bin/rsh’
After performing these steps I was able to run rsh command on remote machine.










My IP address is in numbers. How is your IP in characters?
Its just example..
Leave your response!
Recent Posts
Categories
Tags