disable rsh

Dear Frndz,

Could you please help me
How to disable rsh login in aix.

Also,

I want to know how to open a port for particular application in the serevr side in Aix.

Disable rsh :

chsubserver -r inetd -C /etc/inetd.conf -d -v 'shell' -p 'tcp6'
refresh -s inetd

If you do not want to totally disable the shell in inetd.conf then delete the .rhosts file in the home directory.

Deleting .rhosts in the home directory will just disable a "rlogin w/o a password". I normally comment out the line starting with login in /etc/inetd.conf and refresh -s inetd to disable rlogin.

Regards,

Kaps