<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Securing Telnet/Ftp commands in Linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618055#M892</link>
    <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I have a redhat linux box which is serving as a server in our office network. What i want is that , i want to protect commands such as ftp and telnet from normal users and can only be executed by root user. That is , i dont want any of the normal user logs into this system can telnet or ftp from this linux box to other systems in the same network.At the same time , i need ftp and telnet servers running on this linux box.Simply, i dont want ftp and telnet clients can be used from this linux box by normal users.&lt;BR /&gt;&lt;BR /&gt;Moreover, i dont want to use chmod 700 for these commands since there is a possibility that users can copy these commands from other linux systems to this and start using ftp and telnet clients, since the linux box is running ftp and telnet servers.&lt;BR /&gt;&lt;BR /&gt;If anyone can help me on this i will be really greatfull and thanks in advance ..&lt;BR /&gt;&lt;BR /&gt;Gopinath</description>
    <pubDate>Wed, 21 Nov 2001 05:18:52 GMT</pubDate>
    <dc:creator>Gopinath B</dc:creator>
    <dc:date>2001-11-21T05:18:52Z</dc:date>
    <item>
      <title>Securing Telnet/Ftp commands in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618055#M892</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;I have a redhat linux box which is serving as a server in our office network. What i want is that , i want to protect commands such as ftp and telnet from normal users and can only be executed by root user. That is , i dont want any of the normal user logs into this system can telnet or ftp from this linux box to other systems in the same network.At the same time , i need ftp and telnet servers running on this linux box.Simply, i dont want ftp and telnet clients can be used from this linux box by normal users.&lt;BR /&gt;&lt;BR /&gt;Moreover, i dont want to use chmod 700 for these commands since there is a possibility that users can copy these commands from other linux systems to this and start using ftp and telnet clients, since the linux box is running ftp and telnet servers.&lt;BR /&gt;&lt;BR /&gt;If anyone can help me on this i will be really greatfull and thanks in advance ..&lt;BR /&gt;&lt;BR /&gt;Gopinath</description>
      <pubDate>Wed, 21 Nov 2001 05:18:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618055#M892</guid>
      <dc:creator>Gopinath B</dc:creator>
      <dc:date>2001-11-21T05:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Securing Telnet/Ftp commands in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618056#M893</link>
      <description>Take a look on sudo, that is probably included with RH (&lt;A href="http://www.courtesan.com/sudo/)." target="_blank"&gt;http://www.courtesan.com/sudo/).&lt;/A&gt; It can limit what users can do and where. We use it here to limit the group of people that are able to update our DNS's servers data.&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;&lt;BR /&gt;Paulo Fessel</description>
      <pubDate>Wed, 21 Nov 2001 11:13:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618056#M893</guid>
      <dc:creator>Paulo A G Fessel</dc:creator>
      <dc:date>2001-11-21T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Securing Telnet/Ftp commands in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618057#M894</link>
      <description>I don't think you have many options if you still want to allow root to ftp/telnet.  There are options for preventing any ftp/telnets from your server such as the firewall software or possibily TCP/wrapper.  There are also options you could use to prevent users from running telnet/ftp commands such as the one you mentioned or even use sudo or a wrapper script.  But none of these solve the issue of a user putting his own ftp/telnet command in his home directory and using that instead.  However, if you lock down incoming ftp's then it will be more difficult for them to do so.</description>
      <pubDate>Wed, 21 Nov 2001 13:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618057#M894</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-11-21T13:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Securing Telnet/Ftp commands in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618058#M895</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;It's fairly easy if you want to block ALL outgoing telnet and ftp. You just need to add some rules to your iptables. However, blocking connections on a 'per user' basis would be difficult.&lt;BR /&gt;&lt;BR /&gt;You can try the 'owner' iptables module. This module allows you to block outgoing packets generated by a specific user. I've personally never used it but it may be worth a try in your case.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Paga&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Nov 2001 16:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618058#M895</guid>
      <dc:creator>Marco Paganini</dc:creator>
      <dc:date>2001-11-21T16:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Securing Telnet/Ftp commands in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618059#M896</link>
      <description>Hello again,&lt;BR /&gt;&lt;BR /&gt;I've done some tests here. There iptables rules should work for you:&lt;BR /&gt;&lt;BR /&gt;iptables -A OUTPUT -p tcp --dport telnet -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;iptables -A OUTPUT -p tcp --dport ftp -m owner --uid-owner 0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;iptables -A OUTPUT -p tcp --dport ftp -m state --state NEW,ESTABLISHED,RELATED -j REJECT&lt;BR /&gt;iptables -A OUTPUT -p tcp --dport ftp -m state --state NEW,ESTABLISHED,RELATED -j REJECT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These rules should allow incoming telnet/ftp connections from any user and  block outgoing connections to telnet and ftp that do not come from user root. I believe that kills your problem.&lt;BR /&gt;&lt;BR /&gt;Note: If you see an error on redhat when you run iptables, try to remove the 'ipchains' module (I'm supposing here you have kernel 2.4). You can remove the ipchains module with:&lt;BR /&gt;&lt;BR /&gt;rmmod ipchains&lt;BR /&gt;&lt;BR /&gt;And try the commands above again. If that works, you may consider removing ipchains permanently from your system  and using iptables only.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Paga&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Nov 2001 16:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618059#M896</guid>
      <dc:creator>Marco Paganini</dc:creator>
      <dc:date>2001-11-21T16:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Securing Telnet/Ftp commands in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618060#M897</link>
      <description>Hello again and again. :)&lt;BR /&gt;&lt;BR /&gt;Oh  boy... The cut &amp;amp; paste operation mangled my script. Please disconsider the script in the message above. Use the one attached on this message.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Paga&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Nov 2001 16:33:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/securing-telnet-ftp-commands-in-linux/m-p/2618060#M897</guid>
      <dc:creator>Marco Paganini</dc:creator>
      <dc:date>2001-11-21T16:33:30Z</dc:date>
    </item>
  </channel>
</rss>

