Solved

rhosts - how to enable wildcard remsh access

Posted on 1997-07-09
4
1,359 Views
Last Modified: 2012-05-04
I'm trying to enable remsh to accept any user from any remote system. I created a .rhosts file with the following line:
+ +
but that didn't seem to work. I'm using Red Hat linux 4.2.. any ideas?
0
Comment
Question by:tverona
[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
  • 2
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 1585372
you must add your hosts to
      /etc/hosts.equiv
or setup
      /etc/hosts.allow  /etc/hosts/deny
see   man 5 hosts_access

Ciao Achim
0
 

Author Comment

by:tverona
ID: 1585373
I listed the hosts to hosts.equiv, but still no luck.
I've also tried setting up /etc/hosts.allow with ALL: ALL
which indicates that all access should be allowed, but it still
doesn't work (btw, by default access is allwed)
Ideally, the Linux machine shouldn't maintain a list of hosts and users. It's etc/passwd file contains, say, the user 'build', and
we want to be able to execute the command
remsh linux_machine -l build "cc blah.c"
from a user on a remote machine.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1585374
Hmm, hosts.equiv should work. The hostname must be a full qualified domain name.
Do you also have $HOME/.rhosts for your users?
0
 

Author Comment

by:tverona
ID: 1585375
Actually, I ended up tweaking the ruserok() function to make it
more like other UNIX implementations. On most unix systems, you
can simply have a line like "+ +" in hosts.equiv, which gives
global access to remote hosts and users (the '+' being the
wildcard). I added this to ruserok() in rcmd.c - the function
that checks hosts.equiv, recompiled libc, and it seems to work
fine! Thanks anyways though!
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

635 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