Tuesday, January 22, 2008

How to Deny users Telnet or FTP access.

vi /etc/inetd.conf

Comment the line starts with Telnet or
FTP. Save the file and exit.

Stop and start the inetd daemon now by
following commands:

/etc/rc2.d/S72inetsvc stop

/etc/rc2.d/S72inetsvc start

(Your flavor may be /etc/init.d)

or
send a hang-up (HUP) signal to the inetd process to force it to reread the configuration file:

# pkill -HUP inetd

From now on, no one can telnet or FTP to your
server from outside network.

2 Comments:

Blogger esofthub said...

DeanLee,

Look at your paths again. You'll know what I mean when you see it.

11:16 AM  
Blogger DeanLee said...

Thanks esofthub, typo

11:57 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home