<?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: Prevent direct login (su only) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984580#M122904</link>
    <description>&lt;BR /&gt;In /etc/profile or /etc/csh.login include a quick hack that terminates the shell if the $(logname) matches a list of restricted users.&lt;BR /&gt;&lt;BR /&gt;/etc/profile:&lt;BR /&gt;&lt;BR /&gt;tty -s &amp;amp;&amp;amp; grep -q $(logname) /etc/login.deny &amp;amp;&amp;amp; exit 0&lt;BR /&gt;&lt;BR /&gt;As of patch bundle March 2003, the logname command fails for ttys using the pts driver (ssh). The tels driver is okay (telnet). So you may also concider testing the ownership of the tty:&lt;BR /&gt;&lt;BR /&gt;tty -s &amp;amp;&amp;amp; grep -q $(id -un) /etc/login.deny &amp;amp;&amp;amp; test -O $(tty) &amp;amp;&amp;amp; exit 0&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 30 May 2003 17:10:34 GMT</pubDate>
    <dc:creator>Jordan Bean</dc:creator>
    <dc:date>2003-05-30T17:10:34Z</dc:date>
    <item>
      <title>Prevent direct login (su only)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984576#M122900</link>
      <description>Does anyone have an scripts that they use to prevent direct login by a user ID?  We need to have user IDs (such as oracle), but not allow users to login to these IDs (they are to be forced to su).  Currently, I had a hack in the /etc/profile file to do this, but due to auditing, I think I'm better off replacing the shell of the user with a script which does this.  Anyone have an example of such a script to keep me from reinventing the wheel?  Thanks in advance.</description>
      <pubDate>Thu, 29 May 2003 16:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984576#M122900</guid>
      <dc:creator>Gary L. Paveza, Jr.</dc:creator>
      <dc:date>2003-05-29T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct login (su only)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984577#M122901</link>
      <description>One way is to install sudo on your system (get the package from &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/)," target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/),&lt;/A&gt;&lt;BR /&gt;and set up your /etc/sudoers file like so:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;USER_ALIAS  ORACLE = user1, user2&lt;BR /&gt;&lt;BR /&gt;ORACLE   ALL = /usr/bin/su - oracle&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then, any of the users you have listed in the ORACLE USER_ALIAS can get a login shell as oracle by typing in:&lt;BR /&gt;&lt;BR /&gt;sudo su - oracle&lt;BR /&gt;&lt;BR /&gt;Set the password field in /etc/passwd to "*" to disable login access to the oracle account.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 May 2003 17:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984577#M122901</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-05-29T17:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct login (su only)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984578#M122902</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Take a look at this question.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7924cbaac6dcd5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7924cbaac6dcd5118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Thu, 29 May 2003 17:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984578#M122902</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-05-29T17:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct login (su only)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984579#M122903</link>
      <description>I've attached a document that answers this very question.  It has a lot of hardening steps.  &lt;BR /&gt;(It also irritates the DBA's!)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 30 May 2003 15:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984579#M122903</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-05-30T15:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct login (su only)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984580#M122904</link>
      <description>&lt;BR /&gt;In /etc/profile or /etc/csh.login include a quick hack that terminates the shell if the $(logname) matches a list of restricted users.&lt;BR /&gt;&lt;BR /&gt;/etc/profile:&lt;BR /&gt;&lt;BR /&gt;tty -s &amp;amp;&amp;amp; grep -q $(logname) /etc/login.deny &amp;amp;&amp;amp; exit 0&lt;BR /&gt;&lt;BR /&gt;As of patch bundle March 2003, the logname command fails for ttys using the pts driver (ssh). The tels driver is okay (telnet). So you may also concider testing the ownership of the tty:&lt;BR /&gt;&lt;BR /&gt;tty -s &amp;amp;&amp;amp; grep -q $(id -un) /etc/login.deny &amp;amp;&amp;amp; test -O $(tty) &amp;amp;&amp;amp; exit 0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 May 2003 17:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984580#M122904</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2003-05-30T17:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct login (su only)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984581#M122905</link>
      <description>&lt;BR /&gt;What did your security auditor say about doing this the system login profile?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 May 2003 17:13:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984581#M122905</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2003-05-30T17:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct login (su only)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984582#M122906</link>
      <description>Hi,&lt;BR /&gt;Alternatively, you may wish to use "PowerBroker" software from Symark.&lt;BR /&gt;&lt;A href="http://www.symark.com/powerbroker.htm" target="_blank"&gt;www.symark.com/powerbroker.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This will allow you to delegate these privileges to other users. It will authenticate the end-user. It will help to keep an Audit Trail of the activity carried out.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards...&lt;BR /&gt;Suhas&lt;BR /&gt;&lt;BR /&gt;Have a look at this link.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0af4585fae8bd711abdc0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0af4585fae8bd711abdc0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 31 May 2003 13:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984582#M122906</guid>
      <dc:creator>Suhas_2</dc:creator>
      <dc:date>2003-05-31T13:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct login (su only)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984583#M122907</link>
      <description>Auditors would ideally like to see something that would show up in /etc/passwd, not /etc/profile.  So I'm going to be writing a script which basically prevents login.  That should allow su to function.  Just a matter of hardening it up really well.</description>
      <pubDate>Mon, 02 Jun 2003 17:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/prevent-direct-login-su-only/m-p/2984583#M122907</guid>
      <dc:creator>Gary L. Paveza, Jr.</dc:creator>
      <dc:date>2003-06-02T17:00:10Z</dc:date>
    </item>
  </channel>
</rss>

