authentication problem in using rsh

authentication problem in using rsh

Post by Chri » Wed, 14 Aug 2002 11:25:48




Quote:> i had two pentium machines,  with redhat 7.2 installed on each. the
> one with hostname 'mainserv' has IP/mask combination as
> 10.0.0.1/255.0.0.0 and other machine with hostname 'linuxhost' has
> IP/mask combination as 10.0.0.5/255.0.0.0

> I login on 'mainserv' as root while on 'linuxhost' as 'common'(an
> ordinary created account).
> when i try to enter any rsh command on 'mainserv' such as given here:
> $rsh linuxhost 'echo $PVM_ROOT'

> it says: 'permission denied'

> i had .rhosts file in respective home directories and are owned by
> respective users(the one on 'mainserv' is owned by root and other on
> 'linuxhost' is owned by common).

> but it did not seem to work. i also tried to have same lines in
> /etc/hosts.equiv on both machines in parallel with .rhosts file, but
> it also went useless.

> please help me, what's wrong.

My first question is why are you using rsh instead of ssh. As for the
config files you speak of. The .rhosts file is for user to user auth,,
meaning that you would have to have the  users on the machines
"foo.bar.com bob" as for the hosts.equiv file which is used for system
to system auth you need to use fully qualified names such as
+foo.bar.com bob and so on... Try logging in with the rsh -l username
linuxhost then enter the command and tell me the outcome .
 
 
 

authentication problem in using rsh

Post by Chri » Fri, 16 Aug 2002 03:51:41




> > i had two pentium machines,  with redhat 7.2 installed on each. the
> > one with hostname 'mainserv' has IP/mask combination as
> > 10.0.0.1/255.0.0.0 and other machine with hostname 'linuxhost' has
> > IP/mask combination as 10.0.0.5/255.0.0.0

> > I login on 'mainserv' as root while on 'linuxhost' as 'common'(an
> > ordinary created account).
> > when i try to enter any rsh command on 'mainserv' such as given here:
> > $rsh linuxhost 'echo $PVM_ROOT'

> > it says: 'permission denied'

> > i had .rhosts file in respective home directories and are owned by
> > respective users(the one on 'mainserv' is owned by root and other on
> > 'linuxhost' is owned by common).

> > but it did not seem to work. i also tried to have same lines in
> > /etc/hosts.equiv on both machines in parallel with .rhosts file, but
> > it also went useless.

> > please help me, what's wrong.

> My first question is why are you using rsh instead of ssh. As for the
> config files you speak of. The .rhosts file is for user to user auth,,
> meaning that you would have to have the  users on the machines
> "foo.bar.com bob" as for the hosts.equiv file which is used for system
> to system auth you need to use fully qualified names such as
> +foo.bar.com bob and so on... Try logging in with the rsh -l username
> linuxhost then enter the command and tell me the outcome .

OK so no reply. I will just give you the answer then . Add the user
common on both machines with the same passwd. Put the user in the
.rhosts file on the server along with the name of the other machine
and enjoy using the not as sucure rsh.

 
 
 

authentication problem in using rsh

Post by Muhammad Saleem Ab » Fri, 16 Aug 2002 12:40:37





> > > i had two pentium machines,  with redhat 7.2 installed on each. the
> > > one with hostname 'mainserv' has IP/mask combination as
> > > 10.0.0.1/255.0.0.0 and other machine with hostname 'linuxhost' has
> > > IP/mask combination as 10.0.0.5/255.0.0.0

> > > I login on 'mainserv' as root while on 'linuxhost' as 'common'(an
> > > ordinary created account).
> > > when i try to enter any rsh command on 'mainserv' such as given here:
> > > $rsh linuxhost 'echo $PVM_ROOT'

> > > it says: 'permission denied'

> > > i had .rhosts file in respective home directories and are owned by
> > > respective users(the one on 'mainserv' is owned by root and other on
> > > 'linuxhost' is owned by common).

> > > but it did not seem to work. i also tried to have same lines in
> > > /etc/hosts.equiv on both machines in parallel with .rhosts file, but
> > > it also went useless.

> > > please help me, what's wrong.

> > My first question is why are you using rsh instead of ssh. As for the
> > config files you speak of. The .rhosts file is for user to user auth,,
> > meaning that you would have to have the  users on the machines
> > "foo.bar.com bob" as for the hosts.equiv file which is used for system
> > to system auth you need to use fully qualified names such as
> > +foo.bar.com bob and so on... Try logging in with the rsh -l username
> > linuxhost then enter the command and tell me the outcome .

> OK so no reply. I will just give you the answer then . Add the user
> common on both machines with the same passwd. Put the user in the
> .rhosts file on the server along with the name of the other machine
> and enjoy using the not as sucure rsh.

sorry chris,
i was on leave during last 2 days. and here is what i experienced. if
i had two accounts with different ids and passwords, say saleem on
'mainserv' and common on 'linuxhost', the commands:
$rsh linuxhost 'ls'
gives the same response: 'permission denied'. although i had entries
for both users in .rhosts file. now if i try this command,as u
suggested:
$rsh linuxhost -l common 'ls'
it works. but i need to do it without specifying the user name and
password. and yes, i ur last suggestion that is: keeping ids and
passwords same on both hosts works, since i already tested it.
if u had anything else in ur mind, please do reply me.
 
 
 

1. Problem using ufsdump to remote tape called using rsh

At the moment I have a script which does a rsh to a remote machine which
runs ufsdump using the device on the original machine the 1st script was run
on.  The only problem with
this set-up is if the tape gets full  the program prompts for a new tape to
be inserted but does not wait for a response and continues regardless and
the dump is aborted.

I know that If I do a remote login and run the second script the dump works
ok but I want to avoid this option.

The contents of the scripts are as follows:
1st script
                #!/bin/sh
                rsh argent /usr/FRIDAY

2nd script (FRIDAY)
                #!/bin/sh
                echo BACKUP
                rsh -n gold mt -f /dev/rst1 rewi
                ufsdump 0uf gold:/dev/rst1 /main

2. Making space for upgrade to RH7.1

3. TCP Wrapper / rsh problem (rsh hangs)

4. Slackware 2.1 - driver for ACER CDROM on EIDE card

5. Compare file modification date using tcsh built-ins

6. NT boot loader starts LINUX?

7. Stabbed US preacher flees INDIA state (The same INS tactics used against the stabbed preacher)

8. C or Korn Shell?

9. Plug-Ins using C++

10. which file controls rsh authentication?

11. Need pam.conf config help for RSH/REMSH and SSH authentication

12. lightweight replacement for rsh with keyed hash authentication?

13. rsh authentication