<?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 tweaking init in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993208#M296038</link>
    <description>Hi all;&lt;BR /&gt;I need to tweak one of the init levels so that only I and a couple of other users are able to log into the system.  So essentially, I want to initiate an init command (init 2) which would restrict logins to specified few.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can that be done?  How would I go about it?&lt;BR /&gt;</description>
    <pubDate>Thu, 03 May 2007 08:27:38 GMT</pubDate>
    <dc:creator>Lana Cameli</dc:creator>
    <dc:date>2007-05-03T08:27:38Z</dc:date>
    <item>
      <title>tweaking init</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993208#M296038</link>
      <description>Hi all;&lt;BR /&gt;I need to tweak one of the init levels so that only I and a couple of other users are able to log into the system.  So essentially, I want to initiate an init command (init 2) which would restrict logins to specified few.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can that be done?  How would I go about it?&lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2007 08:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993208#M296038</guid>
      <dc:creator>Lana Cameli</dc:creator>
      <dc:date>2007-05-03T08:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: tweaking init</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993209#M296039</link>
      <description>Rather than messing with init, there is a option available in the 11.X security feature: /etc/security.  Check the man page for security and look for the nologin feature.  Basically, if you create a file called /etc/nologin, non-root access is restricted, as long as NOLOGIN is set to 1 in the /etc/security file (which you may have to create).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 03 May 2007 08:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993209#M296039</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-05-03T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: tweaking init</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993210#M296040</link>
      <description>I'm still on v 10.20 :(</description>
      <pubDate>Thu, 03 May 2007 08:51:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993210#M296040</guid>
      <dc:creator>Lana Cameli</dc:creator>
      <dc:date>2007-05-03T08:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: tweaking init</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993211#M296041</link>
      <description>pointing out the obvious, you can create a script to do this.&lt;BR /&gt;&lt;BR /&gt;when you enter into the init 2 stage, script runs (with proper Sxxx and Kxxx links created) and does this &lt;BR /&gt;&lt;BR /&gt;check the status (locked/active) of the users you want NOT to be able to login. Store these in some file for reverting back to them.&lt;BR /&gt;&lt;BR /&gt;then lock these users out.&lt;BR /&gt;&lt;BR /&gt;do your thing at init level 2&lt;BR /&gt;&lt;BR /&gt;when you go to init level 3 or above, using the file you created above, go ahead and restore those accounts' status back to where they were prior to you locking them out.&lt;BR /&gt;&lt;BR /&gt;lock-out and restoration, may be handled differently depending on your OS security level, i.e., trusted or untrusted.&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
      <pubDate>Thu, 03 May 2007 08:54:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993211#M296041</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2007-05-03T08:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: tweaking init</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993212#M296042</link>
      <description>Along the lines of what Mel said:&lt;BR /&gt;another way is to place a file in a known location (like /etc/downtime)&lt;BR /&gt;&lt;BR /&gt;instead of locking / unlocking in passwd,&lt;BR /&gt;modify the system's /etc/profile to look for that file.  if it finds it, check user id against a list of allowed users.  if they are allowed, fine, else exit&lt;BR /&gt;&lt;BR /&gt;at init 3, remove said file. this also lets you manually create the file to prohibit logins at higher run levels if needed&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 May 2007 09:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993212#M296042</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-05-03T09:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: tweaking init</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993213#M296043</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Modify /etc/profile&lt;BR /&gt;&lt;BR /&gt;Have it check the variable LOGNAME against the output from who -r and log users out based on run level.&lt;BR /&gt;&lt;BR /&gt;Shell scripting. &lt;BR /&gt;&lt;BR /&gt;I don't know why the idea to touch init came to mind but its not the way to acheive the goal.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 03 May 2007 09:25:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tweaking-init/m-p/3993213#M296043</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-03T09:25:15Z</dc:date>
    </item>
  </channel>
</rss>

