Re: rshd: 0826-813 Permission is denied. error

From: Alexandre Sato (alexandre.sato@BR.ABNAMRO.COM)
Date: Tue Aug 19 2003 - 09:20:47 EDT


Check:

1 - If permissions of .rhosts file is ok (usual is 755)
2 - The hosts you need for rlogin has entries at /etc/hosts
and
3 - The file /etc/netsvc.conf exists with this single line (on both
servers)

hosts=local,bind

- The netsvc.conf file is the equivalent for nsswicth.conf for others
Unix-flavors. The syntax is simple, regarding to the order which hostnames
are translated for their respectives IP address.

local = /etc/hosts file
bind = DNS
nis = NIS
ldap = LDAP

You might change the line depending on your environment.

Best Regards

Shekhar Dhotre <Shekhar.Dhotre@LENDLEASEREI.COM>
Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>
08/19/03 09:33 AM
Please respond to IBM AIX Discussion List

        To: aix-l@Princeton.EDU
        cc:
        Subject: rshd: 0826-813 Permission is denied. error

Hi All ,

I am trying to configure rsh on the following systems. It work only one
way i.e. from IFS to CPT33 but not from cpt33 to IFS .

ifs ---------> cpt33 .

Host IFS

# cat .rhosts
ifs root
cpt33 root
ifs17_boot root
cpt33_boot root
f2n17 root
f3n33 root

# grep rsh /etc/inetd.conf
shell stream tcp6 nowait root /usr/sbin/rshd rshd
kshell stream tcp nowait root /usr/sbin/krshd krshd

HOST CPT33 .

# ls -la .rhosts
-rw------- 1 root system 74 Aug 18 22:54 .rhosts
CPT33
# cat .rhosts
ifs root
cpt33 root
ifs17_boot root
cpt33_boot root
f2n17 root
f3n33 root

# grep rsh /etc/inetd.conf
shell stream tcp6 nowait root /usr/sbin/rshd rshd
kshell stream tcp nowait root /usr/sbin/krshd krshd
kshell stream tcp nowait root /usr/sbin/krshd
# ls -la .rhosts
-rw------- 1 root system 74 Aug 18 23:00 .rhosts

I have verified hostname by host <IP address> command . also checked
host.equiv file . Am I missing something here ?

Thanks

SD

---------------------------------------------------------------------------
This message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.
ABN AMRO Bank N.V. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. ABN AMRO Bank N.V. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference.
---------------------------------------------------------------------------



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:08 EDT