unable to rsh: permission denied

  • Follow


hello all,
on a v40z, solaris 10 GA, after installing somme patches, i got some 
troubles, and i can't use rsh, but i can use it before patches:

nemo-henry% rsh nemo ls
permission denied
nemo-henry% cat .rhosts
nemo
nemo-henry% cat /etc/hosts.equiv
nemo
nemo-root% svcs -l svc:/network/shell:default
fmri         svc:/network/shell:default
name         rsh
enabled      true
state        online
next_state   none
state_time   Thu Nov 03 08:29:45 2005
restarter    svc:/network/inetd:default
contract_id
dependency   require_any/error svc:/network/loopback (online)
dependency   optional_all/error svc:/milestone/network (online)

and there is also problem with nis:
nemo-root% ypwhich
inet_ntop: Address family not supported by protocol family
but all nis users continue to login without trouble.

any hint?

thanks in advance,

gerard
0
Reply jdh13 11/8/2005 8:35:48 AM

jdh13 wrote:

> hello all,
> on a v40z, solaris 10 GA, after installing somme patches, i got some 
> troubles, and i can't use rsh, but i can use it before patches:
>
> nemo-henry% rsh nemo ls
> permission denied
> nemo-henry% cat .rhosts
> nemo
> nemo-henry% cat /etc/hosts.equiv
> nemo
> nemo-root% svcs -l svc:/network/shell:default
> fmri         svc:/network/shell:default
> name         rsh
> enabled      true
> state        online
> next_state   none
> state_time   Thu Nov 03 08:29:45 2005
> restarter    svc:/network/inetd:default
> contract_id
> dependency   require_any/error svc:/network/loopback (online)
> dependency   optional_all/error svc:/milestone/network (online)
>
> and there is also problem with nis:
> nemo-root% ypwhich
> inet_ntop: Address family not supported by protocol family
> but all nis users continue to login without trouble.
>
> any hint?
>
> thanks in advance,
>
> gerard

Hello,

In your .netrc file should have the following entry :
machine <remote host name> user <remote userid>  password  <password>

Regards,
Thobias


-- 
Thobias Vakayil
Alcatel Development India (ADI)
PH: 2349961/72/86 EXTN :7018
0
Reply Thobias 11/8/2005 9:09:25 AM


Thobias Vakayil wrote:

> 
> In your .netrc file should have the following entry :
> machine <remote host name> user <remote userid>  password  <password>
> 

thanks for your reply.
but in man in.rshd, there is no mention about .netrc, i believed it 
concerned ftp ?
i only want to use ssh
0
Reply jdh13 11/8/2005 9:27:30 AM

jdh13 wrote:

> Thobias Vakayil wrote:
>
>>
>> In your .netrc file should have the following entry :
>> machine <remote host name> user <remote userid>  password  <password>
>>
>
> thanks for your reply.
> but in man in.rshd, there is no mention about .netrc, i believed it 
> concerned ftp ?
> i only want to use ssh

Hello,

For executing the command in rsh, .netrc entry should be present.

Regards,
Thobias

-- 
Thobias Vakayil
Alcatel Development India (ADI)
PH: 2349961/72/86 EXTN :7018
0
Reply Thobias 11/8/2005 10:48:49 AM

Thobias Vakayil wrote:

> 
> For executing the command in rsh, .netrc entry should be present.
> 

thanks
could you give me a pointer to a doc that specify it? at now, i notice 
that .netrc need:
      machine ray login demo password mypassword

man netrc
NAME
      netrc - file for ftp remote login data

DESCRIPTION
      The .netrc file contains data for logging  in  to  a  remote
      host  over  the  network  for file transfers by ftp(1). This

i don't want to put a password in this sort of file
0
Reply jdh13 11/8/2005 12:28:43 PM

jdh13 <jdh13@free.fr> wrote:
> Thobias Vakayil wrote:
>> 
>> For executing the command in rsh, .netrc entry should be present.
> 
> could you give me a pointer to a doc that specify it? 

He can't, because it's just plain wrong. .netrc is only used for
ftp, not rsh.

mp.
-- 
Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
0
Reply Martin 11/8/2005 2:50:12 PM

jdh13 <jdh13@free.fr> wrote:
> on a v40z, solaris 10 GA, after installing somme patches, i got some 
> troubles, and i can't use rsh, but i can use it before patches:
> 
> nemo-henry% rsh nemo ls
> permission denied
> nemo-henry% cat .rhosts
> nemo
> nemo-henry% cat /etc/hosts.equiv
> nemo

From the output above it looks as if you want to connect via
rsh from host nemo to host nemo - is that really what you 
want to do ?

A generic advice - try to rlogin from host "source" to host "target",
then run "who", and put exactly the hostname from that output into
/etc/hosts.equiv on host "target" - often those problems are caused
by issues with short hostnames vs. FQDNs (with domain).

mp.
-- 
Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
0
Reply Martin 11/8/2005 2:55:58 PM

Thobias Vakayil <Vakayil.Thobias@alcatel.com> writes in comp.unix.solaris:
|In your .netrc file should have the following entry :
|machine <remote host name> user <remote userid>  password  <password>

..netrc is for ftp, not rsh

-- 
________________________________________________________________________
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
 http://www.csua.berkeley.edu/~alanc/   *   http://blogs.sun.com/alanc/
  Working for, but definitely not speaking for, Sun Microsystems, Inc.
0
Reply Alan 11/8/2005 3:59:33 PM

Execute please this:

truss rsh nemo ls

And post the result.

Ram=F3n.

0
Reply iso 11/8/2005 6:04:06 PM

Ram�n Barr�s wrote:
> Execute please this:
> 
> truss rsh nemo ls
> 
> And post the result.

I have a feeling the result is going to be something like:

	truss: cannot trace set-id or unreadable object file: /usr/bin/rsh

rsh needs to be root because it uses a privileged port to connect and
because that was once somebody's idea of security.  :-)

   - Logn
0
Reply Logan 11/8/2005 9:22:31 PM

True :-) 

rsh must be executed as root

Thanks, Logn

0
Reply iso 11/8/2005 10:23:40 PM

thanks to all people who reply, i found error in /etc/hosts
after correcting entries in this file, everything goes ok
0
Reply jdh13 11/9/2005 10:55:52 AM

11 Replies
1399 Views

(page loaded in 0.138 seconds)

Similiar Articles:


















7/20/2012 3:26:19 AM


Reply: