<?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 Re: restrict remote login in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561407#M29403</link>
    <description>There is no way to do this as there is for root. Requiring root to always use su is a common mechanism and is accomplished with either:&lt;BR /&gt;&lt;BR /&gt;echo console &amp;gt; /etc/securetty&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;cat /dev/null &amp;gt; /eetc/securetty&lt;BR /&gt;&lt;BR /&gt;In the first case, root (or any login with UID=0) can login to the console, but in the second case, root can never login (pretty secure, eh?). Instead, users must login as an ordinary user ID, then use su - root to attain root privileges, thus requiring two passwords and two logging steps.&lt;BR /&gt;&lt;BR /&gt;For ordinary users, you would have to write special code in /etc/profile (and /etc/login.csh if necessary) to detect these special user(s) and give an error message when an incorrect login is attempted.</description>
    <pubDate>Fri, 03 Aug 2001 17:50:02 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2001-08-03T17:50:02Z</dc:date>
    <item>
      <title>restrict remote login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561406#M29402</link>
      <description>This might be a trivial question, but does anyone know how to restrict remote login for a certain account so that users MUST "su" into the account instead of remote login?  &lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 03 Aug 2001 15:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561406#M29402</guid>
      <dc:creator>Huyen Nguyen</dc:creator>
      <dc:date>2001-08-03T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: restrict remote login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561407#M29403</link>
      <description>There is no way to do this as there is for root. Requiring root to always use su is a common mechanism and is accomplished with either:&lt;BR /&gt;&lt;BR /&gt;echo console &amp;gt; /etc/securetty&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;cat /dev/null &amp;gt; /eetc/securetty&lt;BR /&gt;&lt;BR /&gt;In the first case, root (or any login with UID=0) can login to the console, but in the second case, root can never login (pretty secure, eh?). Instead, users must login as an ordinary user ID, then use su - root to attain root privileges, thus requiring two passwords and two logging steps.&lt;BR /&gt;&lt;BR /&gt;For ordinary users, you would have to write special code in /etc/profile (and /etc/login.csh if necessary) to detect these special user(s) and give an error message when an incorrect login is attempted.</description>
      <pubDate>Fri, 03 Aug 2001 17:50:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561407#M29403</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-08-03T17:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: restrict remote login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561408#M29404</link>
      <description>Hello Huyen,&lt;BR /&gt;&lt;BR /&gt;in addition to Bill's answer, when you have X-Windows&lt;BR /&gt;(i.e. CDE) set up and running, your restricting code&lt;BR /&gt;has to go into "Xsetup" or "Xstartup" in the directory&lt;BR /&gt;"/etc/dt/config/" - when those script have an exit-value &lt;BR /&gt;other than 0, then they will deny login.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
      <pubDate>Sat, 04 Aug 2001 21:33:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561408#M29404</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-08-04T21:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: restrict remote login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561409#M29405</link>
      <description>You means that certain user can only login in from console or su ? &lt;BR /&gt;&lt;BR /&gt;You can revise the /etc/profile  to get to this :&lt;BR /&gt;&lt;BR /&gt;-=-=-=-=&lt;BR /&gt;trap "" 1 2 3&lt;BR /&gt;#put the real user account as username below&lt;BR /&gt;USER=username&lt;BR /&gt;HOSTNAME=$(hostname)&lt;BR /&gt;Login_Host=$(who -R | grep $USER| tail -1 | awk '{print $6}')&lt;BR /&gt;AllowLogin=$(grep $HOSTNAME "$Login_Host")&lt;BR /&gt;if test "$Allowlogin" -eq ""&lt;BR /&gt;then&lt;BR /&gt;#Not allowed in&lt;BR /&gt;echo You are not allowed to login from $Login_Host as $USER&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;trap 1 2 3 &lt;BR /&gt;&lt;BR /&gt;-=-=-=-=-=&lt;BR /&gt;&lt;BR /&gt;Then now username is only allow to login on cosole or through su .&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Aug 2001 05:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-remote-login/m-p/2561409#M29405</guid>
      <dc:creator>Frank Li</dc:creator>
      <dc:date>2001-08-06T05:53:10Z</dc:date>
    </item>
  </channel>
</rss>

