Solved

rsh, rlogin etc give permission denied.

Posted on 1997-04-08
6
772 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
Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

19 Experts available now in Live!

Get 1:1 Help Now