Operating System - HP-UX
1752293 Members
4422 Online
108786 Solutions
New Discussion юеВ

Re: how to disable rlogin and rsh function

 
Eric  Unix
Frequent Advisor

how to disable rlogin and rsh function

Hello All

how to disable rlogin and rsh function in hp unix. thanks a lot.

BR
eric
Look forward
5 REPLIES 5
Jeeshan
Honored Contributor

Re: how to disable rlogin and rsh function

to disable rlogin edit file /etc/inetd.conf and comment the line

login stream tcp nowait root /usr/lbin/rlogind rlogind

Please look for file /etc/host.equiv or $HOME/.rhosts and remove. please see man page of rsh and rlogin.

don't forget to restart the inetd daemon after changes.

#inetd -c
a warrior never quits
Taifur
Respected Contributor

Re: how to disable rlogin and rsh function

Hi Eric,


For disable rlogin
edit /etc/inetd.conf and comment protocols
that start with an r
remove .rhosts file from you machine
setup /etc/hosts.equiv to prevent login
from all machines (deny all)

Rgds//
Taifur
Ganesan R
Honored Contributor

Re: how to disable rlogin and rsh function

Hi Eric,

Nowdays these so called insecure ARPA/Berkely services not widely used because of its security risk. Best alternate would be secure shell services which uses high level encryption/decryption mechanism to secure the data over network.

So just comment out rlogin/remsh/rexec services in /etc/inetd file and start using SSH.

As said, re-read the inetd file using the below command after making the changes.

#inetd -c
Best wishes,

Ganesh.
Suraj K Sankari
Honored Contributor

Re: how to disable rlogin and rsh function

Hi,

Comment this line as below in /etc/inetd.conf

#login stream tcp nowait root /usr/lbin/rlogind rlogind

then restart with inetd -c

Suraj
Sajjad Sahir
Honored Contributor

Re: how to disable rlogin and rsh function

etc/inetd.conf this is the configuration file
once u comment any line in this file that service will not available.

ok

and if u are making any changes u should have to run inted -c command it is must


thanks and regards

sajjad