1752567 Members
5365 Online
108788 Solutions
New Discussion юеВ

Re: linux

 
Ashok Kumar B S
Occasional Contributor

linux

How to block a particular user from telnet service
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: linux

Please see this very recent thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1169829
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
sandeep mathur
Respected Contributor

Re: linux

check out
iptables -A INPUT -s --dport 23 -j DROP.

at the iptables file
then for ftp same as above but --dport 21
ssh 22
Steven E. Protter
Exalted Contributor

Re: linux

Shalom,

The iptables command can be adjusted to block a hostname or IP address.

If however you wish to block one user and let others in, you need to build code into /etc/profile to detect and eject that user.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
palaniappan.sp
Regular Advisor

Re: linux

Hi,

U can deny the user from telnetting to ur m/c by putting the user name in /etc/host.deny and more over u can specify the user name in /etc/xinetd.d/telnetd
Only_from = < allowed user>

The second thing if u have configured proxy, u can able to control the telnet access based on the user acl.

let me know if u required any details

Regds
Palani


Everything is Possible and Anything is Feasible if u try