Home » Unix/Linux

Solved : rcmd socket permission denied

30 December 2009 144 views 2 Comments

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.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • Facebook
  • Google Bookmarks
  • email
  • MySpace
  • Twitthis
  • Yahoo! Bookmarks
  • Twitter
(No Ratings Yet)
Loading ... Loading ...

2 Comments »

  • mike tyson said:

    My IP address is in numbers. How is your IP in characters?

  • Techbuddy (author) said:

    Its just example..

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.