Solved

rsh, rlogin etc give permission denied.

Posted on 1997-04-08
6
782 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

680 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