<?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 Restrict Root access by IP address in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023594#M48113</link>
    <description>I would like to restrict login by root to specfied ip addresses(the workstations in the IT department).&lt;BR /&gt;&lt;BR /&gt;Please advise how best to achieve this.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Fri, 19 Jan 2007 02:54:35 GMT</pubDate>
    <dc:creator>Nigel Mushet</dc:creator>
    <dc:date>2007-01-19T02:54:35Z</dc:date>
    <item>
      <title>Restrict Root access by IP address</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023594#M48113</link>
      <description>I would like to restrict login by root to specfied ip addresses(the workstations in the IT department).&lt;BR /&gt;&lt;BR /&gt;Please advise how best to achieve this.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 19 Jan 2007 02:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023594#M48113</guid>
      <dc:creator>Nigel Mushet</dc:creator>
      <dc:date>2007-01-19T02:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Root access by IP address</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023595#M48114</link>
      <description>You didn't specify the type of login ssh, telnet,etc?&lt;BR /&gt;If it's one of above - you can achieve this easily with /etc/hosts.deny (to deny login) or /etc/hosts.allow to allow login.&lt;BR /&gt;&lt;BR /&gt;see examples here:&lt;BR /&gt;&lt;A href="http://www.rhce2b.com/clublinux/RHCE-33.shtml" target="_blank"&gt;http://www.rhce2b.com/clublinux/RHCE-33.shtml&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2007 04:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023595#M48114</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-01-19T04:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Root access by IP address</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023596#M48115</link>
      <description>Hi Nigel,&lt;BR /&gt;&lt;BR /&gt;Better you configure SSH and restrict root login from anywhere....&lt;BR /&gt;&lt;BR /&gt;What you can do is that you can create a common user account and from that you can "su" to your root account.&lt;BR /&gt;&lt;BR /&gt;In /etc/ssh/sshd_config file, add a clause which is -- AllowUsers &lt;USERNAME&gt; using which you can restrict the access to few IP Addresses only.&lt;BR /&gt;&lt;BR /&gt;There's a clause which is PermitRootLogin, we need to set it to "no" to restrict root access.&lt;BR /&gt;&lt;BR /&gt;I'm attaching a sample file for you which you can take a look at it.....&lt;BR /&gt;&lt;BR /&gt;Do let me know bout any queries...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Atul&lt;BR /&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Fri, 19 Jan 2007 04:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023596#M48115</guid>
      <dc:creator>Atul Gautam</dc:creator>
      <dc:date>2007-01-19T04:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Root access by IP address</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023597#M48116</link>
      <description>Hello Nigel!&lt;BR /&gt;&lt;BR /&gt;i do the same with IPTables.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.netfilter.org/projects/iptables/index.html" target="_blank"&gt;http://www.netfilter.org/projects/iptables/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 19 Jan 2007 04:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023597#M48116</guid>
      <dc:creator>Alpha977</dc:creator>
      <dc:date>2007-01-19T04:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Root access by IP address</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023598#M48117</link>
      <description>How about restrict everybody from login as root but allow 'su -'&lt;BR /&gt;&lt;BR /&gt;Set up the /etc/securetty file for console only. &lt;BR /&gt;&lt;BR /&gt;Direct login as root is allowed only from console. Users can 'su -' to the root account. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2007 17:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023598#M48117</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2007-01-19T17:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Root access by IP address</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023599#M48118</link>
      <description>Thanks for your replies:&lt;BR /&gt;&lt;BR /&gt;Alexander&lt;BR /&gt;&lt;BR /&gt;We are using telnet to login. form what I understand the host.allow and hosts.deny allows one to control what networks can have access. In my case I would want everyone to have access to the server but restrict direct login to root to a few specific IP addresses. I am not clear on how one would do this in these files - can "root" be used as a service keyword ?&lt;BR /&gt;&lt;BR /&gt;Atul&lt;BR /&gt;&lt;BR /&gt;I will have to investigate SSH - never set this up before. I can't open your attachment (I am on a very slow link...)&lt;BR /&gt;&lt;BR /&gt;Alpha977&lt;BR /&gt;&lt;BR /&gt;I will have to investigate iptables as I have never used this function.&lt;BR /&gt;&lt;BR /&gt;Rick&lt;BR /&gt;&lt;BR /&gt;I am using HPUX11 and do not have a /etc/securetyy file - should this be available un HPUX ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jan 2007 00:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023599#M48118</guid>
      <dc:creator>Nigel Mushet</dc:creator>
      <dc:date>2007-01-22T00:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Root access by IP address</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023600#M48119</link>
      <description>Will need to do further investigation</description>
      <pubDate>Thu, 01 Feb 2007 03:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restrict-root-access-by-ip-address/m-p/5023600#M48119</guid>
      <dc:creator>Nigel Mushet</dc:creator>
      <dc:date>2007-02-01T03:10:54Z</dc:date>
    </item>
  </channel>
</rss>

