1845889 Members
3841 Online
110250 Solutions
New Discussion

REMSH on 1020

 
Carl Scialdone
New Member

REMSH on 1020

I am trying to setup a backup script to run on another machine and I am having
problems with the host machine allowing root to do any command using remsh.

I have setup the host.equiv and .rhosts in root directory with read/write for
user only. It seems that any other user can run commands ok

The command line is

remsh ls

quite simple to test connectivity.

Any sugestions

Carl
3 REPLIES 3
Berlene Herren_1
Super Advisor

Re: REMSH on 1020

Carl, what error message are you getting? A big problem with the R commands is
hostname. Do a
#who -Rm >> what ever hostname is returned (short or fully qualified), is the
format that needs to be in the .rhosts file.

Berlene
Russell O'neal
Advisor

Re: REMSH on 1020

I'm not quite sure I follow your syntax. The command I use is "remsh
ls" . The host.equiv is not necessary for root. Here are some of my notes:

The local /etc/hosts.equiv file allows users from equivalent remote hosts to
access a local account using rcp or remsh or to rlogin to the local account
without supplying a password. For a user to be granted access, both the remote
host name and the user name must "match" an entry in /etc/hosts.equiv.

Rules for the /etc/hosts.equiv file:

1. The /etc/hosts.equiv file defines system-wide equivalency, whereas a user's
.rhosts file defines equivalency between the local user and other remote users.

2. Login names should be left out of the file, unless the intention is to give
a user the privilege of logging into all the accounts on a system without
having to provide a password. If a username is included in the file, only that
user may connect to your host without a password. The specified user may log in
as any user, except root, without supplying a password.

3. For all non-root users, the /etc/hosts.equiv will be checked before the
/home//.rhosts file.

4. For root users, only the /.rhosts file will checked, the /etc/hosts.equiv is
not checked.

The syntax for root's .rhosts file is
server.domainname root

Hope this helps.
Russell O'neal
Advisor

Re: REMSH on 1020

Looks like this site leaves out the servername when using the remsh...I think
you have the idea...