Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

rsh, rlogin etc give permission denied.

Posted on 1997-04-08
6
Medium Priority
?
801 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 200 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

636 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