<?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: Restricting user logins in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525513#M733058</link>
    <description>Hi &lt;BR /&gt;&lt;BR /&gt;Burak I was thinking of going with your suggestion but was wondering if there is anything in PAM that would do something similar. &lt;BR /&gt;&lt;BR /&gt;Thanks for the other suggestions as well.&lt;BR /&gt;&lt;BR /&gt;AY</description>
    <pubDate>Mon, 02 Nov 2009 12:56:46 GMT</pubDate>
    <dc:creator>Andrew Young_2</dc:creator>
    <dc:date>2009-11-02T12:56:46Z</dc:date>
    <item>
      <title>Restricting user logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525509#M733054</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;We've just had our annual visit from our (adjectives deleted) auditors and they want to restrict the ability of the oracle user to login directly, but our DBA's must be able to su to that account if needed, so a shell account is required. Any ideas on how to do this?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew Young</description>
      <pubDate>Mon, 02 Nov 2009 09:52:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525509#M733054</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2009-11-02T09:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525510#M733055</link>
      <description>Combination of sudo and tcp wrappers will do it. you can user for direct login and then sudo to control su to oracle account. /etc/default/security file can also control few things. man 4 security.</description>
      <pubDate>Mon, 02 Nov 2009 10:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525510#M733055</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2009-11-02T10:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525511#M733056</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You have to add this line to your "sshd_config" file;&lt;BR /&gt;&lt;BR /&gt;DenyUsers oracle &lt;BR /&gt;&lt;BR /&gt;then restart the service;&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/secsh stop&lt;BR /&gt;/sbin/init.d/secsh start&lt;BR /&gt;&lt;BR /&gt;and finally, you have to add DBA user to your sudoers file &lt;BR /&gt;with the permission to su oracle...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Nov 2009 12:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525511#M733056</guid>
      <dc:creator>Burak Topal</dc:creator>
      <dc:date>2009-11-02T12:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525512#M733057</link>
      <description>Try the following in /etc/profile with allowed user id's in the file /etc/su_allow_oracle.txt&lt;BR /&gt;&lt;BR /&gt;TTY=`tty | awk -F/ '{printf ($3"/"$4)}'`&lt;BR /&gt;USER_TTY=`w | awk '(\$2=="'$TTY'"){print \$1}'`&lt;BR /&gt;&lt;BR /&gt;    if [ -n "$USER_TTY" ] &amp;amp;&amp;amp; [ $(whoami) = "oracle" ] &amp;amp;&amp;amp; [ $(grep -q $USER_TTY /etc/su_allow_oracle.txt; echo $?) != 0 ]&lt;BR /&gt;    then&lt;BR /&gt;        echo&lt;BR /&gt;        echo "************************************************************"&lt;BR /&gt;        echo "This account ($USER_TTY) is not permitted to su into oracle."&lt;BR /&gt;        echo "************************************************************"&lt;BR /&gt;        echo&lt;BR /&gt;        sleep 5&lt;BR /&gt;        exit&lt;BR /&gt;    fi&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Nov 2009 12:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525512#M733057</guid>
      <dc:creator>gstonian</dc:creator>
      <dc:date>2009-11-02T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525513#M733058</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Burak I was thinking of going with your suggestion but was wondering if there is anything in PAM that would do something similar. &lt;BR /&gt;&lt;BR /&gt;Thanks for the other suggestions as well.&lt;BR /&gt;&lt;BR /&gt;AY</description>
      <pubDate>Mon, 02 Nov 2009 12:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525513#M733058</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2009-11-02T12:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525514#M733059</link>
      <description>Andrew,&lt;BR /&gt;&lt;BR /&gt;i did not know the way about PAM which can overcome this issue and could not find any useful document about how to configure PAM.&lt;BR /&gt;You may look at the following link, there are some other ways discussed like changing oracle password..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1257167203491+28353475&amp;amp;threadId=1121876" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1257167203491+28353475&amp;amp;threadId=1121876&lt;/A&gt;</description>
      <pubDate>Mon, 02 Nov 2009 13:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-logins/m-p/4525514#M733059</guid>
      <dc:creator>Burak Topal</dc:creator>
      <dc:date>2009-11-02T13:40:03Z</dc:date>
    </item>
  </channel>
</rss>

