<?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 console login in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616935#M733522</link>
    <description>how to restrict the root user to login to the console directly. I need to set the limitation like if the user needs to login as root, they must be use the su - root command to switvh as root.&lt;BR /&gt;&lt;BR /&gt;How can we set that one</description>
    <pubDate>Tue, 13 Apr 2010 19:29:29 GMT</pubDate>
    <dc:creator>gany59</dc:creator>
    <dc:date>2010-04-13T19:29:29Z</dc:date>
    <item>
      <title>restrict console login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616935#M733522</link>
      <description>how to restrict the root user to login to the console directly. I need to set the limitation like if the user needs to login as root, they must be use the su - root command to switvh as root.&lt;BR /&gt;&lt;BR /&gt;How can we set that one</description>
      <pubDate>Tue, 13 Apr 2010 19:29:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616935#M733522</guid>
      <dc:creator>gany59</dc:creator>
      <dc:date>2010-04-13T19:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: restrict console login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616936#M733523</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Read:&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1367457" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1367457&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 13 Apr 2010 19:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616936#M733523</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-04-13T19:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: restrict console login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616937#M733524</link>
      <description>u have to see securetty file&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.faqs.org/docs/securing/chap5sec41.html" target="_blank"&gt;http://www.faqs.org/docs/securing/chap5sec41.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Wed, 14 Apr 2010 03:18:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616937#M733524</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-04-14T03:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: restrict console login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616938#M733525</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The /etc/securetty file allows you to specify which TTY devices the root user is allowed to login on. The /etc/securetty file is read by the login program usually /bin/login. Its format is a list of the tty devices names allowed, and for all others that are commented out or do not appear in this file, root login is disallowed. Disable any tty that you do not need by commenting them out # at the beginning of the line. Edit the securetty file vi, /etc/securetty and comment out the following lines: &lt;BR /&gt;tty1&lt;BR /&gt;#tty2&lt;BR /&gt;#tty3&lt;BR /&gt;#tty4&lt;BR /&gt;#tty5&lt;BR /&gt;#tty6&lt;BR /&gt;#tty7&lt;BR /&gt;#tty8&lt;BR /&gt;Which means only root is allowed to login on tty1. This is my recommendation, allowing root to log in only on one tty device and use the su command to switch to root if you need more. devices to log in as root. &lt;BR /&gt;&lt;BR /&gt;For ssh  we need to do like this&lt;BR /&gt;&lt;BR /&gt;echo "PermitRootLogin no "&amp;gt;&amp;gt; /opt/ssh/etc/sshd_config&lt;BR /&gt;&lt;BR /&gt;restart sshd  demon&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/secsh stop&lt;BR /&gt;/sbin/init.d/secsh start&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2010 04:41:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616938#M733525</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2010-04-14T04:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: restrict console login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616939#M733526</link>
      <description>In addition to Suraj's post, you should disable telnet (as a general rule) and permit only SSH.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Horia.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2010 05:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-console-login/m-p/4616939#M733526</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-04-14T05:13:31Z</dc:date>
    </item>
  </channel>
</rss>

