Solved

rsh, rlogin etc give permission denied.

Posted on 1997-04-08
6
785 Views
Last Modified: 2012-05-04
When issuing an rsh command to a Linux 2.0.29 machine I keep
getting Permission Denied.
I have a .rhosts file with the correct machine/user added
I have these line in my /etc/inetd.conf
shell  stream  tcp  nowait  root  /usr/sbin/tcpd  in.rshd -L
login  stream  tcp  nowait  root  /usr/sbin/tcpd in.rlogind
exec   stream  tcp  nowait  root  /usr/sbin/tcpd in.rexecd

I can ping, telnet etc so tcp is configured correctly.
0
Comment
Question by:dksayers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 3

Expert Comment

by:pc012197
ID: 1584333
Does rlogin work?
What's in your /etc/hosts.allow and /etc/hosts.deny?
Give us an example entry from your .rhosts file.
Is DNS set up correctly (so the hostnames in .rhosts are resolved correctly)?

0
 

Author Comment

by:dksayers
ID: 1584334
rlogin works after prompting me for a password.
I have no entries in /etc/hosts.allow or /etc/hosts.deny. My
~/.rhosts file (600 permission, owned by me) contains entries in the form:
machine      myname
eg:
odtdev      daryl
I also have the machine name I wish to give access to in my /etc/hosts.equiv.
There is no DNS running on this machine. My DNS is operating
correctly on another machine.
0
 
LVL 3

Accepted Solution

by:
pc012197 earned 100 total points
ID: 1584335
Try using a full qualified machine name, like

odtdev.your.site daryl

If that doesn't work, try using the ip number instead of the machine name

123.45.6.7 daryl

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dksayers
ID: 1584336
bash-2.00$ ping homer.stone.oz.au
PING homer.stone.oz.au (192.168.169.14): 56 data bytes
64 bytes from 192.168.169.14: icmp_seq=0 ttl=64 time=2.4 ms
64 bytes from 192.168.169.14: icmp_seq=1 ttl=64 time=1.3 ms

--- homer.stone.oz.au ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1.3/1.8/2.4 ms
bash-2.00$ rsh homer ls -la
Permission denied.
bash-2.00$ rsh homer.stone.oz.au ls -la
Permission denied.
bash-2.00$ rsh 192.168.169.14 ls -la
Permission denied.
bash-2.00$ rsh homer.stone.oz.au -l daryl ls -la
Permission denied.
bash-2.00$ rsh homer -l daryl ls -la
Permission denied.

0
 
LVL 3

Expert Comment

by:pc012197
ID: 1584337
I meant: Put the FQDN and/or the IP number in your .rhosts file.

0
 

Author Comment

by:dksayers
ID: 1584338
Thats the one. I did need to reboot for some reason but it all seems to work now.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question