[EMAIL PROTECTED] writes:
> Hello, all. I checked the mail archives for 'root access', 'rsh root',
> and 'root login', but failed to find what I was looking for.
> For the purpose of nightly backups, I want to allow a Solaris 2.6 box to
> be able to rsh into a PC that is running Red Hat as root without being
> prompted for a password.
> I have commented out all of the lines in /etc/pam.d/rsh and I have
> commented out the /lib/security/pam_securetty.so line of /etc/pam.d/login.
> This allows the root account to telnet, rlogin, and rsh in, but *with* a
> password prompt. Again, I want the Solaris box that is running the backup
> scripts to be able to rsh right in as root.
(I didn't even have to muck around with PAM in order to get the scheme
below working)
Edit ~root/.rhosts and add a line like this:
yourSolaris2.6Hostname yourAccountOnThatSolarisBox
and then make sure that this .rhosts file has the appropiate
permissions (chmod 600 ~root/.rhosts).
I would highly recommend doing this with ssh though. IP addresses can
be spoofed....
--kevin (hey, long time no see...)
--
Kevin D. Clark ([EMAIL PROTECTED]) |
Cetacean Networks, Inc. | Give me a decent UNIX
Portsmouth, N.H. (USA) | and I can move the world
[EMAIL PROTECTED] (PGP Key Available) |
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************