1834150 Members
2099 Online
110064 Solutions
New Discussion

remsh error

 
Rpger Tavener
Occasional Advisor

remsh error

Hi

Tyring to remsh from serverA to serverA
and we keep getting this error:
remsh servera -n date
rresvport: bind: Permission denied

If we just do a remsh serverA (without the -n date) we get connected OK.. This happens no matter which user id try.. Any ideas would be appreciated..

Thanks
When the only tool you own is a hammer, every problem looks like a nail!
13 REPLIES 13
Robert-Jan Goossens
Honored Contributor

Re: remsh error

Hi Roger,

Could list the remsh command,

# ll /usr/bin/remsh

Regards,
Robert-Jan.
Rpger Tavener
Occasional Advisor

Re: remsh error

-r-sr-sr-x 1 root bin 32768 Apr 9 1999 /usr/bin/remsh
When the only tool you own is a hammer, every problem looks like a nail!
Sanjay_6
Honored Contributor

Re: remsh error

Hi Roger,

check the permissions for remsh, they should be -r-sr-xr-x. If required set the permissions using chmod to 4555.
chmod 4555 /sbin/remsh or /usr/bin/remsh. Check out which remsh is being sourced by trying "type remsh"

Hope this helps.

Regds
Robert-Jan Goossens
Honored Contributor

Re: remsh error

Hi Roger,

# chmod 4555 /usr/bin/remsh

You are missing the sticky bit.

Regards,
Robert-Jan
Rpger Tavener
Occasional Advisor

Re: remsh error

tried chmod 4555 /us/bin/remsh , still no luck..
When the only tool you own is a hammer, every problem looks like a nail!
Ron Kinner
Honored Contributor

Re: remsh error

Check if
nslookup servera
comes back with a valid IP address.

Then check to see if it can get the host name based on the IP.

What do you have in
/etc/hosts.equiv
?

Ron
Rpger Tavener
Occasional Advisor

Re: remsh error

Tried the IP address. Still no luck..
/etc/hosts.equiv does not exist..
When the only tool you own is a hammer, every problem looks like a nail!
Robert-Jan Goossens
Honored Contributor

Re: remsh error

Hi,

did you check which remsh you use ?

# which remsh
John Poff
Honored Contributor

Re: remsh error

Hi,

Are you trying this as a non-root user? If so, what does 'which date' return on ServerA as that user? Just curious, but maybe you have a questionable 'date' command on ServerA?

Also, do you get the same error with other commands on ServerA?

JP
Umapathy S
Honored Contributor

Re: remsh error

Roger,
Does remsh servera -n ls works?

Because the rresvport errors occurs on the remote host side. If the userids are not same, then hosts.equiv file is needed on remote host side.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Suresh Patoria
Super Advisor

Re: remsh error

Hi,

Check the in the /etc/hosts file entry

is there entry for remote server

r u able to ping by name

also check in /var/adm/inetd.sec file in both system.

Thanx
Jakes Louw
Trusted Contributor

Re: remsh error

Try the following:

remsh servera -n "/usr/bin/date"

I reckon you aren't picking up "date" from the right place.....
Trying is the first step to failure - Homer Simpson
Rpger Tavener
Occasional Advisor

Re: remsh error

Thanks to all who responded..
The problem was we needed permissions on /usr/lbin/remshd as follows:

-r-xr--r-- 1 bin bin 36864 Apr 9 1999 remshd

We had -r-sr--r--

When the only tool you own is a hammer, every problem looks like a nail!