rsh camhost picture.command
I get permission denied.
I edited /etc/hosts.allow and /etc/hosts.equiv and added the main machine
in (actually did it on both hosts.) and nuttin.
both root and normal accounts on BOTH machines are the same (passwords too)
Thanks!
If security isn't an issue.
create /.rhosts on your camhost
with an entry of the remote host followed by root.
hosts.equiv should work, make sure camhost:/etc/hosts
has an entry for remote host in it.
-- mha
--
___________________________________________________________________________
Mehmet H. Aksu email: m...@cc.bellcore.com
It must be specified in root's .rhosts that access is allowed...
think about the security problem here... you are making it very easy to
gain access to your machine... Especially if it is on a valid internet
address.
Why not give the appropriate permissions to the user who needs to rlogin..
maybe change ownership of the files??
tom
Mehmet H Aksu (m...@cc.bellcore.com) wrote:
: Martian--
Red Hat 2.1 uses the "NYS" variant of NIS/YP. Unfortunately, NYS, as
distributed with Red Hat (2.2beta4?), doesn't appear to work well in a
heterogeneous environment. Besides exhibiting problems with matching
host names for the r* program authentications, NYS's "ypcat" program
doesn't work. However, as I'll report below, NYS can be configured to
permit rsh operations between _some_ types of hosts.
NYS's configuration files are /etc/yp.conf and /etc/nsswitch.conf.
The yp.conf file specifies which NIS/YP master to consult. The
nsswitch.conf file's "hosts:" entry specifies the order in which to
consult the various name-to-IP maps: dns, nis, and hosts.
The order _DOES_ matter, and the _type_ of NIS/YP master matters.
The choices are:
1. To make HP-UX 9.x hosts interoperate with Red Hat Linux 2.1
(in terms of rsh operations--or "remsh" on the HP-UX hosts)
you have to specify an HP-UX master in yp.conf, and you have
to specify the order "dns files nis" in the nsswitch.conf
"hosts" entry. Unfortunately, this means that none of your Red Hat
hosts will interoperate with each other.
2. To make Red Hat hosts interoperate with each other, you have
to specify a SunOS master in yp.conf. This is required
_possibly_ because SunOS uses some filthy hack (apparently
missing in HP-UX 9.x's NIS/YP implementation) in its NIS'd hosts
table in order to permit its resolver to perform DNS lookups.
The nsswitch order "nis files dns" appears to work best here.
Apparently, you can't have both 1 and 2, so you have to choose which
set of hosts you want to allow to interoperate with each other. I
haven't figured out yet why NYS cares about where it's getting its
hosts information--particularly since, at least in my environment, the
DNS, NIS/YP, and hosts tables are built automatically from a common
source and all provide the same information. Also, I haven't tried
creating a Red Hat Linux NIS/YP master to see if that solves the
problem on the Linux side--that's the next thing to try.