<?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: login lock file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439385#M6750</link>
    <description>Put the word console in /etc/securetty file, and you will only have root login at the console and no other terminal.</description>
    <pubDate>Thu, 24 Aug 2000 08:25:50 GMT</pubDate>
    <dc:creator>CHRIS_ANORUO</dc:creator>
    <dc:date>2000-08-24T08:25:50Z</dc:date>
    <item>
      <title>login lock file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439384#M6749</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt; To stop the users loging in to the server,one lockfile to be created on /tmp directory or some where. I forgotten now.&lt;BR /&gt;&lt;BR /&gt; Can anyone help?&lt;BR /&gt; &lt;BR /&gt;  HP9000 -D270 HP-UX 10.20&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Aug 2000 08:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439384#M6749</guid>
      <dc:creator>R.Mahendran_1</dc:creator>
      <dc:date>2000-08-24T08:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: login lock file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439385#M6750</link>
      <description>Put the word console in /etc/securetty file, and you will only have root login at the console and no other terminal.</description>
      <pubDate>Thu, 24 Aug 2000 08:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439385#M6750</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-08-24T08:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: login lock file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439386#M6751</link>
      <description>Chris' suggest stops root login, but I must admit to not knowing of any lock file you can create to do what you want.&lt;BR /&gt;&lt;BR /&gt;I'd suggest unplugging the machine from the network. Then you can just use the console.</description>
      <pubDate>Thu, 24 Aug 2000 08:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439386#M6751</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-24T08:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: login lock file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439387#M6752</link>
      <description>&lt;BR /&gt;/etc/securetty will stop direct root logins only, not normal users. To stop normal users you can use either;&lt;BR /&gt;&lt;BR /&gt;1. Download and configuring tcpwrappers and then use the host.allow and host.deny options.&lt;BR /&gt; &lt;BR /&gt;2. Use the built-in capability of inetd, /var/adm/inetd.sec is the file that enables or disables logins depending upon service specified.&lt;BR /&gt;&lt;BR /&gt;3. modify /etc/profile then you can touch a file called /etc/nologin to stop users logging in, here is the code to add to /etc/proifle (below). When you want to let them back on again remove /etc/nologin&lt;BR /&gt;&lt;BR /&gt;if [ -r /etc/nologin ] &lt;BR /&gt;then &lt;BR /&gt;   if [ `/usr/bin/id -u` = "0" ] &lt;BR /&gt;   then &lt;BR /&gt;      echo "nnn" &lt;BR /&gt;      echo "       --&amp;gt; NOTICE &amp;lt;---" &lt;BR /&gt;      echo "User login is currently disabled because of system maintenance" &lt;BR /&gt;      echo "However, you will be allowed in." &lt;BR /&gt;      echo "nPress Enter to continue...c" &lt;BR /&gt;      read junk &lt;BR /&gt;   else &lt;BR /&gt;      sleep 2 &lt;BR /&gt;      clear &lt;BR /&gt;      echo "nnnnnnnn" &lt;BR /&gt;      echo "  The system is currently unavailable." &lt;BR /&gt;      echo "  Please try again later." &lt;BR /&gt;      sleep 5 &lt;BR /&gt;      exit 1 &lt;BR /&gt;   fi &lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Aug 2000 08:33:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439387#M6752</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-08-24T08:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: login lock file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439388#M6753</link>
      <description>generally in /etc/profile there will be some lines which checks for a file like "nologin" and rejects the users to login except the root user. May be you should also try to look in to /etc/profile for the file location and also the file name</description>
      <pubDate>Thu, 24 Aug 2000 09:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439388#M6753</guid>
      <dc:creator>Manju Kampli</dc:creator>
      <dc:date>2000-08-24T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: login lock file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439389#M6754</link>
      <description>Changing "/etc/profile" to check for "/etc/.nologin" is not enough,&lt;BR /&gt;if your users log in through X-Windows! Include the same check into&lt;BR /&gt;"/usr/dt/config/Xsession".&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
      <pubDate>Thu, 24 Aug 2000 21:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-lock-file/m-p/2439389#M6754</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2000-08-24T21:53:55Z</dc:date>
    </item>
  </channel>
</rss>

