<?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 direct root acces in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104723#M751677</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I want to know how to restrict direct root access to HP system. I am having superdome with 11i installed. Please reply immediate..&lt;BR /&gt;Thanks&lt;BR /&gt;Regards&lt;BR /&gt;Prashant</description>
    <pubDate>Tue, 28 Oct 2003 16:05:50 GMT</pubDate>
    <dc:creator>Prashant_15</dc:creator>
    <dc:date>2003-10-28T16:05:50Z</dc:date>
    <item>
      <title>direct root acces</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104723#M751677</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I want to know how to restrict direct root access to HP system. I am having superdome with 11i installed. Please reply immediate..&lt;BR /&gt;Thanks&lt;BR /&gt;Regards&lt;BR /&gt;Prashant</description>
      <pubDate>Tue, 28 Oct 2003 16:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104723#M751677</guid>
      <dc:creator>Prashant_15</dc:creator>
      <dc:date>2003-10-28T16:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: direct root acces</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104724#M751678</link>
      <description>If you want to disallow root logins from anywhere EXCEPT the console you need to create a file called /etc/securetty and place the word 'console' (without the quote marks) in that file.  I would also make sure the permissions on the file are 444 (-r--r--r--).&lt;BR /&gt;&lt;BR /&gt;# cat /etc/securetty&lt;BR /&gt;console&lt;BR /&gt;#</description>
      <pubDate>Tue, 28 Oct 2003 16:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104724#M751678</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-28T16:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: direct root acces</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104725#M751679</link>
      <description>echo console &amp;gt; /etc/securetty&lt;BR /&gt;&lt;BR /&gt;Doing the following will restrict direct root login to the console only. su will still work from any terminal though.&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Tue, 28 Oct 2003 16:09:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104725#M751679</guid>
      <dc:creator>Brian Bergstrand</dc:creator>
      <dc:date>2003-10-28T16:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: direct root acces</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104726#M751680</link>
      <description>Cheers, &lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 16:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104726#M751680</guid>
      <dc:creator>Prashant_15</dc:creator>
      <dc:date>2003-10-28T16:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: direct root acces</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104727#M751681</link>
      <description>I've used this trick in the past to restrict who can login.  I place this code in the /etc/profile  &lt;BR /&gt;&lt;BR /&gt;if [ -r /etc/nologin ]&lt;BR /&gt;then&lt;BR /&gt;case $LOGNAME in&lt;BR /&gt;        root ) ;;  &lt;BR /&gt;        bmarkus ) ;;   &lt;BR /&gt;        oracle ) ;;&lt;BR /&gt;&lt;BR /&gt;esac&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;In this case only root, bmarkus, and oracle can login.  If you take root out of that list, it should do it.  &lt;BR /&gt;&lt;BR /&gt;Or you could do something like this&lt;BR /&gt;&lt;BR /&gt;if [ `whoami` == "root" ] &lt;BR /&gt;then&lt;BR /&gt;cat /etc/nologin&lt;BR /&gt;exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;-Brian.</description>
      <pubDate>Wed, 29 Oct 2003 00:20:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104727#M751681</guid>
      <dc:creator>Brian Markus</dc:creator>
      <dc:date>2003-10-29T00:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: direct root acces</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104728#M751682</link>
      <description>Note that securetty only restricts login methods that use a tty like telnet.&lt;BR /&gt;&lt;BR /&gt;For example, SSH would not use securetty, it has its own variable in /etc/opt/ssh/sshd.config.&lt;BR /&gt;&lt;BR /&gt;-Robert</description>
      <pubDate>Wed, 29 Oct 2003 11:17:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/direct-root-acces/m-p/3104728#M751682</guid>
      <dc:creator>Robert Fritz</dc:creator>
      <dc:date>2003-10-29T11:17:54Z</dc:date>
    </item>
  </channel>
</rss>

