<?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: What's the file?  Simple question.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494517#M757946</link>
    <description>Not aware of a file to put into /etc to restrict logins but you could modify the /etc/profile to for a file and if it exists, do not allow logins. Most of what I have seen, if a file called 'nologins' exists, typically in /etc, the the profile will see it and not allow logins. Again, this works in conjunction with the /etc/profile as just having the nologins file will not work, the profile has to be looking for it.</description>
    <pubDate>Thu, 15 Feb 2001 22:39:49 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2001-02-15T22:39:49Z</dc:date>
    <item>
      <title>What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494515#M757944</link>
      <description>What is file file you stick in /etc to restrict users from loging in?</description>
      <pubDate>Thu, 15 Feb 2001 22:21:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494515#M757944</guid>
      <dc:creator>ACS_2</dc:creator>
      <dc:date>2001-02-15T22:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494516#M757945</link>
      <description>Can you be a little more specific.  There are lots of files in /etc which can keep users from logging in (eg. passwd).  If you can be a more precise or give us an example of the situation it would help greatly.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jason V.</description>
      <pubDate>Thu, 15 Feb 2001 22:37:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494516#M757945</guid>
      <dc:creator>Jason VanDerMark</dc:creator>
      <dc:date>2001-02-15T22:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494517#M757946</link>
      <description>Not aware of a file to put into /etc to restrict logins but you could modify the /etc/profile to for a file and if it exists, do not allow logins. Most of what I have seen, if a file called 'nologins' exists, typically in /etc, the the profile will see it and not allow logins. Again, this works in conjunction with the /etc/profile as just having the nologins file will not work, the profile has to be looking for it.</description>
      <pubDate>Thu, 15 Feb 2001 22:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494517#M757946</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2001-02-15T22:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494518#M757947</link>
      <description>I thought you could just create this file in /etc, and as long as it exsists, only root can login to the server.  Actually I'm not sure  it works that way on HP, but it does work on AIX.  &lt;BR /&gt;&lt;BR /&gt;I guess what I want to know is, how can I temporarily keep users from loging on to the box?</description>
      <pubDate>Thu, 15 Feb 2001 23:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494518#M757947</guid>
      <dc:creator>ACS_2</dc:creator>
      <dc:date>2001-02-15T23:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494519#M757948</link>
      <description>I believe creating the /etc/nologin works on Solaris too but, as Rick said, it only works on HP if you modify the /etc/profile so it will look for the file.&lt;BR /&gt;&lt;BR /&gt;If you are working from the console only, or have the web console, you could always stop inetd.  That would prevent anyone from logging in.  It would also prevent you from using any other network services as well though.</description>
      <pubDate>Thu, 15 Feb 2001 23:39:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494519#M757948</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-02-15T23:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494520#M757949</link>
      <description>Another option would be to just move the /etc/passwd file to something like passwd.with.all.users and then create a new passwd file with only the users you want to access the system.</description>
      <pubDate>Thu, 15 Feb 2001 23:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494520#M757949</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-02-15T23:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494521#M757950</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are you referring to /etc/securetty?&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Fri, 16 Feb 2001 07:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494521#M757950</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-02-16T07:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494522#M757951</link>
      <description>I am under the impression that /etc/secure.tty is a file that keeps users from loging into the server from their workstations as root.  This way only through the console can a person login as root.  To my knowledge there is *no way* to keep users out of the system other than to shut down appplications and or sigle user mode...</description>
      <pubDate>Wed, 07 Mar 2001 16:42:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494522#M757951</guid>
      <dc:creator>Paul T. Green</dc:creator>
      <dc:date>2001-03-07T16:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494523#M757952</link>
      <description>As a system admin we used /etc/nologin to keep users out of systems during maintenance and it worked fine. The following snippet of code is from /etc/profile &lt;BR /&gt;&lt;BR /&gt;   if [ -f /etc/nologin -a $uid -ne 0 ]; then&lt;BR /&gt;     echo "Sorry, no login allowed, try later!"&lt;BR /&gt;     sleep 5&lt;BR /&gt;     exit 0&lt;BR /&gt;   fi&lt;BR /&gt;&lt;BR /&gt;As you can see, root can log in but users can't</description>
      <pubDate>Tue, 13 Mar 2001 18:18:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494523#M757952</guid>
      <dc:creator>Jerry L. Anderson</dc:creator>
      <dc:date>2001-03-13T18:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494524#M757953</link>
      <description>We use /etc/profile to limit user access, and this works well.  If we have backups running and do not want users (except root) to login we create a BackUps file containing a message.  When it is okay for users to be in we rename BackUps to NoBackUps.  Here's what we have in /etc/profile:&lt;BR /&gt;&lt;BR /&gt;# Check for backups in progress&lt;BR /&gt;if [ -x /etc/BackUps ]&lt;BR /&gt;then&lt;BR /&gt;     if [ `whoami` != "root" ]&lt;BR /&gt;     then&lt;BR /&gt;          /etc/BackUps&lt;BR /&gt;          exit&lt;BR /&gt;     fi&lt;BR /&gt;fi</description>
      <pubDate>Tue, 13 Mar 2001 20:57:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494524#M757953</guid>
      <dc:creator>Joanne Keegan</dc:creator>
      <dc:date>2001-03-13T20:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: What's the file?  Simple question....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494525#M757954</link>
      <description>Hello ACS,&lt;BR /&gt;if you are going for the "/etc/nologin" approach, be&lt;BR /&gt;careful to insert that "if [ -f /etc/nologin ]" snippet in&lt;BR /&gt;all places used for logins, as there are:&lt;BR /&gt;- serial/console: /etc/profile, /etc/cshrc&lt;BR /&gt;- telnet/rlogin: /etc/profile, /etc/cshrc&lt;BR /&gt;- X-Windows: /etc/dt/config/Xstartup&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2001 21:37:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-s-the-file-simple-question/m-p/2494525#M757954</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-03-13T21:37:14Z</dc:date>
    </item>
  </channel>
</rss>

