tverona
asked on
rhosts - how to enable wildcard remsh access
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?
+ +
but that didn't seem to work. I'm using Red Hat linux 4.2.. any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hmm, hosts.equiv should work. The hostname must be a full qualified domain name.
Do you also have $HOME/.rhosts for your users?
Do you also have $HOME/.rhosts for your users?
ASKER
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!
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!
ASKER
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.