Networking Forums

Networking Forums > Computer Networking > Linux Networking > rsh problem from linux to solaris machines

Reply
Thread Tools Display Modes

rsh problem from linux to solaris machines

 
 
Moo
Guest
Posts: n/a

 
      08-11-2004, 07:31 AM
Hi -- I have two SUN servers and many linux clients.
I have added a few of the hosts in my .rhosts file, that includes both
the SUn servers and a few linux clients -- so as understood I can rsh
from any of these systems without being prompted for passwd to any
other machines. This works fine if I

1. Login from linux to linux clients
2. Sun to Sun machines
3. Sun to linux machines

But when I rsh from 'linux machines that are in .rhosts to any of the
Sun servers' it prompts for a password.
I have no clue why there is a problem. Is it that SUN or linux
systems needs any specific 'pam' library.

Thanks in advance for your help.

regards
-Moo
 
Reply With Quote
 
 
 
 
Michael Vilain
Guest
Posts: n/a

 
      08-11-2004, 09:52 AM
In article <(E-Mail Removed) >,
(E-Mail Removed) (Moo) wrote:

> Hi -- I have two SUN servers and many linux clients.
> I have added a few of the hosts in my .rhosts file, that includes both
> the SUn servers and a few linux clients -- so as understood I can rsh
> from any of these systems without being prompted for passwd to any
> other machines. This works fine if I
>
> 1. Login from linux to linux clients
> 2. Sun to Sun machines
> 3. Sun to linux machines
>
> But when I rsh from 'linux machines that are in .rhosts to any of the
> Sun servers' it prompts for a password.
> I have no clue why there is a problem. Is it that SUN or linux
> systems needs any specific 'pam' library.
>
> Thanks in advance for your help.
>
> regards
> -Moo


when you rsh from a linux machine to a sun server, provide a password,
you'll get a shell. What's displayed when you type

who am i

at the shell? Is the hostname displayed in the remote system's .rhosts
file?

--
DeeDee, don't press that button! DeeDee! NO! Dee...



 
Reply With Quote
 
Gerry Sinkiewicz
Guest
Posts: n/a

 
      08-11-2004, 11:55 AM

<Michael Vilain <(E-Mail Removed)>> wrote in message
news:vilain-(E-Mail Removed)...
> In article <(E-Mail Removed) >,
> (E-Mail Removed) (Moo) wrote:
>
> > Hi -- I have two SUN servers and many linux clients.
> > I have added a few of the hosts in my .rhosts file, that includes both
> > the SUn servers and a few linux clients -- so as understood I can rsh
> > from any of these systems without being prompted for passwd to any
> > other machines. This works fine if I
> >
> > 1. Login from linux to linux clients
> > 2. Sun to Sun machines
> > 3. Sun to linux machines
> >
> > But when I rsh from 'linux machines that are in .rhosts to any of the
> > Sun servers' it prompts for a password.
> > I have no clue why there is a problem. Is it that SUN or linux
> > systems needs any specific 'pam' library.
> >
> > Thanks in advance for your help.
> >
> > regards
> > -Moo

>
> when you rsh from a linux machine to a sun server, provide a password,
> you'll get a shell. What's displayed when you type
>
> who am i
>
> at the shell? Is the hostname displayed in the remote system's .rhosts
> file?
>
> --
> DeeDee, don't press that button! DeeDee! NO! Dee...
>
>
>


finger may also be instructive, the hostname that finger shows is what is
needed it .rhosts

sometimes the fully qualified DNS is needed, and sometimes not.

The other point is that the .rhosts file can be a security risk. ssh is
good.


 
Reply With Quote
 
Doug Freyburger
Guest
Posts: n/a

 
      08-11-2004, 02:31 PM
Moo wrote:
>
> But when I rsh from 'linux machines that are in .rhosts to
> any of the Sun servers' it prompts for a password.


Give it the password and when you're logged in do "who am i".
Carefully note the hostname it says that you came in from.
Especially whether it uses the short name or FQDN. Whichever
name it gives, add that one to your .rhosts file and try again.

If it gives the IP number instead of either short hostname or
FQDN, then you have a DNS/DHCP automated update problem.
Your linux boxes aren't getting registered in DNS when they
get their DHCP leases.
 
Reply With Quote
 
Doug Freyburger
Guest
Posts: n/a

 
      08-11-2004, 02:35 PM
Moo wrote:
>
> But when I rsh from 'linux machines that are in .rhosts to
> any of the Sun servers' it prompts for a password.


Give it the password and when you're logged in do "who am i".
Carefully note the hostname it says that you came in from.
Especially whether it uses the short name or FQDN. Whichever
name it gives, add that one to your .rhosts file and try again.

If it gives the IP number instead of either short hostname or
FQDN, then you have a DNS/DHCP automated update problem.
Your linux boxes aren't getting registered in DNS when they
get their DHCP leases.
 
Reply With Quote
 
Harrie de Bie
Guest
Posts: n/a

 
      08-11-2004, 09:10 PM
Moo,

Are you using multiple/stacked ip/adresses on the SUN servers (multipathing
!?) ? If so, then try adding all the ip-adresses or their aliases in the
..rhosts file of a linux box.

cheers,

Harrie


"Moo" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed) om...
> Hi -- I have two SUN servers and many linux clients.
> I have added a few of the hosts in my .rhosts file, that includes both
> the SUn servers and a few linux clients -- so as understood I can rsh
> from any of these systems without being prompted for passwd to any
> other machines. This works fine if I
>
> 1. Login from linux to linux clients
> 2. Sun to Sun machines
> 3. Sun to linux machines
>
> But when I rsh from 'linux machines that are in .rhosts to any of the
> Sun servers' it prompts for a password.
> I have no clue why there is a problem. Is it that SUN or linux
> systems needs any specific 'pam' library.
>
> Thanks in advance for your help.
>
> regards
> -Moo



 
Reply With Quote
 
Nicolas
Guest
Posts: n/a

 
      08-15-2004, 07:18 AM
First, I'm not at home and I can't check this trick for now, so I speak
from memory (plus, I'm using ssh for years now), so it it doesn't work,
excuse me.

I believe that .rhost only works with rlogin & rcp, at least on Solaris
& hp-ux. I've always had to provide a passwd with rsh & remsh.

Also, you may provide in the /etc/hosts.equiv, /etc/hosts.allow &
/etc/hosts.deny the name of hosts *AND USERS* allowed (or denied) to
connect without passwords. This is not mandatory if you use .rhost in
home directory of users, but I don't know what happens if you have some
inconsistencies between .rhosts & host.xxxx

regards

Nicolas


Moo wrote:
> Hi -- I have two SUN servers and many linux clients.
> I have added a few of the hosts in my .rhosts file, that includes both
> the SUn servers and a few linux clients -- so as understood I can rsh
> from any of these systems without being prompted for passwd to any
> other machines. This works fine if I
>
> 1. Login from linux to linux clients
> 2. Sun to Sun machines
> 3. Sun to linux machines
>
> But when I rsh from 'linux machines that are in .rhosts to any of the
> Sun servers' it prompts for a password.
> I have no clue why there is a problem. Is it that SUN or linux
> systems needs any specific 'pam' library.
>
> Thanks in advance for your help.
>
> regards
> -Moo

 
Reply With Quote
 
all mail refused
Guest
Posts: n/a

 
      08-15-2004, 11:49 AM
In article <cfn2op$9h0$(E-Mail Removed)>, Nicolas wrote:

>> But when I rsh from 'linux machines that are in .rhosts to any of the
>> Sun servers' it prompts for a password.


>from memory (plus, I'm using ssh for years now)


I suggest using ssh instead of r*.

>I believe that .rhost only works with rlogin & rcp, at least on Solaris
>& hp-ux. I've always had to provide a passwd with rsh & remsh.


rsh,remsh also use .rhosts just the same.
Maybe name lookups are behind the problems of the OP.

>Also, you may provide in the /etc/hosts.equiv, /etc/hosts.allow &
>/etc/hosts.deny the name of hosts *AND USERS* allowed (or denied) to
>connect without passwords.


Do not put usernames in /etc/hosts.equiv unless you want
fred@foreign doing rsh to bin@sunserver .

HP-UX has a non-traditional interpretation of usernames in
/etc/hosts.equiv so putting them in there is not so bad.

--
Elvis Notargiacomo master AT barefaced DOT cheek
http://www.notatla.org.uk/goen/
If its message contained filing-cabinets in annex, for
security reasons same sao automatically extinguished.
 
Reply With Quote
 
Moo
Guest
Posts: n/a

 
      08-18-2004, 07:51 AM
<SNIP>
Sorry to have responded so late, have been busy with some other jobs.

Actually I have used the hostnames as per the name resolution only.
nslookup works for the same name and 'finger' shows the hostname. But
the hostname of the SUN asks for a passwd with that hostname.

I am still clueless, let me try ssh.

Thanks for all who responded.

regards
,Moo
 
Reply With Quote
 
Moo
Guest
Posts: n/a

 
      08-18-2004, 07:57 AM
<SNIP>

SOrry folks, it works with linux machines' FQDN in the .rhosts, how
stupid of me!! Ignore my just previous mail.

thanks again,
,Moo
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
1000mbps connection problem between Linux and Solaris Vishal Sharma Linux Networking 7 10-29-2007 09:44 PM
Help: RCP issue between solaris and redhat linux steeles Linux Networking 4 09-16-2006 05:14 AM
Do I need to use Different Serial cable ( RS232 ) for ( Linux to Solaris ) and ( Linux to Windows ) nurxb01@gmail.com Linux Networking 5 04-20-2006 12:37 AM
accessing from linux to Solaris NFS share markryde@gmail.com Linux Networking 0 02-05-2006 09:56 AM
Solaris net boot from Linux Paul Johnson Linux Networking 1 01-01-2006 06:49 PM



1 2 3 4 5 6 7 8 9 10 11