Solved

rsh, rlogin etc give permission denied.

Posted on 1997-04-08
6
770 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
  • 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now