<?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: Scripts in preventing certains users(DBA) from logging in directly.  Force to &amp;quot;su&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606545#M35219</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;Simple one:&lt;BR /&gt; you can add the following check in /etc/profile for&lt;BR /&gt;bourne shell&lt;BR /&gt;   &lt;BR /&gt;  loginid=`logname`&lt;BR /&gt;  if [ $loginid = oracle ]&lt;BR /&gt;  then&lt;BR /&gt;     echo "Only Su login allowed""&lt;BR /&gt;     exit 1&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For CSH, do similar logic&lt;BR /&gt;in /etc/csh.login&lt;BR /&gt;set loginid=`logname`&lt;BR /&gt;if ( $loginid == oracle) &lt;BR /&gt;then&lt;BR /&gt;   echo ""only Su allowed""&lt;BR /&gt;    exit 1&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;***&lt;BR /&gt;&lt;BR /&gt;   Another method is to&lt;BR /&gt;disable oracle account&lt;BR /&gt;and setup sudo to login as&lt;BR /&gt;oracle.&lt;BR /&gt;&lt;BR /&gt;This is a good security question.  Probably a security&lt;BR /&gt;guru should be able to come&lt;BR /&gt;up with a perfect trick to&lt;BR /&gt;do this.&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;-raj</description>
    <pubDate>Fri, 02 Nov 2001 17:48:04 GMT</pubDate>
    <dc:creator>Roger Baptiste</dc:creator>
    <dc:date>2001-11-02T17:48:04Z</dc:date>
    <item>
      <title>Scripts in preventing certains users(DBA) from logging in directly.  Force to "su"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606541#M35215</link>
      <description>Need a scripts or some means to prevent specific users, esp. DBA, from telnet as oracle but to login using their personal account and then su -ing to Oracle.  I need information for both bourne and C-shell.  Seem to me that sometime ago there was a entry for "/usr/bin/sh" and not for "/usr/bin/csh".  Need both any help will be appreciated.</description>
      <pubDate>Fri, 02 Nov 2001 16:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606541#M35215</guid>
      <dc:creator>Darryl Lauderdale</dc:creator>
      <dc:date>2001-11-02T16:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts in preventing certains users(DBA) from logging in directly.  Force to "su"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606542#M35216</link>
      <description>We have used sudo to do exactly that.&lt;BR /&gt;&lt;BR /&gt;The way we did it:&lt;BR /&gt;&lt;BR /&gt;Put a * in the passwd field for the oracle ID.&lt;BR /&gt;&lt;BR /&gt;Create a script called 'oracle' or something similar that looks like:&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/sudo su - oracle&lt;BR /&gt;&lt;BR /&gt;and make it executable.&lt;BR /&gt;&lt;BR /&gt;Then set up sudo so that users can execute that script and voila.&lt;BR /&gt;&lt;BR /&gt;Make sense?</description>
      <pubDate>Fri, 02 Nov 2001 17:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606542#M35216</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-11-02T17:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts in preventing certains users(DBA) from logging in directly.  Force to "su"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606543#M35217</link>
      <description>Hi Darryl,&lt;BR /&gt;&lt;BR /&gt;What you can do is disable the login for oracle, but this will disallow all login as oracle. Users can only do a su to oracle. To do this edit /etc/passwd file and put a "*" in tthe 2nd field for oracle.&lt;BR /&gt;&lt;BR /&gt;oracle:*:uid:gid:.....&lt;BR /&gt;&lt;BR /&gt;There is no way to make a set of users being made unable to login as oracle and other set being able to login as oracle through telnet at the same time. I think that is what you are looking for. &lt;BR /&gt;&lt;BR /&gt;If you face any permission problem, you may try looking into "sudo" to give users the superuser capability to run a particual script "oracle" as mentioned above by  Patrick.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Nov 2001 17:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606543#M35217</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-11-02T17:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts in preventing certains users(DBA) from logging in directly.  Force to "su"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606544#M35218</link>
      <description>A place I used to work had something that compared users to a special users list, if the user was not in there then they were give access or not.&lt;BR /&gt;&lt;BR /&gt;If I remember correctly, /etc/profile was modified with an if/then statement to perform this check and let users in or not based on the user name.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;C</description>
      <pubDate>Fri, 02 Nov 2001 17:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606544#M35218</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-02T17:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts in preventing certains users(DBA) from logging in directly.  Force to "su"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606545#M35219</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Simple one:&lt;BR /&gt; you can add the following check in /etc/profile for&lt;BR /&gt;bourne shell&lt;BR /&gt;   &lt;BR /&gt;  loginid=`logname`&lt;BR /&gt;  if [ $loginid = oracle ]&lt;BR /&gt;  then&lt;BR /&gt;     echo "Only Su login allowed""&lt;BR /&gt;     exit 1&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For CSH, do similar logic&lt;BR /&gt;in /etc/csh.login&lt;BR /&gt;set loginid=`logname`&lt;BR /&gt;if ( $loginid == oracle) &lt;BR /&gt;then&lt;BR /&gt;   echo ""only Su allowed""&lt;BR /&gt;    exit 1&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;***&lt;BR /&gt;&lt;BR /&gt;   Another method is to&lt;BR /&gt;disable oracle account&lt;BR /&gt;and setup sudo to login as&lt;BR /&gt;oracle.&lt;BR /&gt;&lt;BR /&gt;This is a good security question.  Probably a security&lt;BR /&gt;guru should be able to come&lt;BR /&gt;up with a perfect trick to&lt;BR /&gt;do this.&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;-raj</description>
      <pubDate>Fri, 02 Nov 2001 17:48:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606545#M35219</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-11-02T17:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts in preventing certains users(DBA) from logging in directly.  Force to "su"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606546#M35220</link>
      <description>Raj's /etc/profile trick is how I usually do this as it is very simple and easy to keep track of.&lt;BR /&gt;&lt;BR /&gt;If your using a product like PowerBroker or CA's Access Control this is a very easy thing to implement.&lt;BR /&gt;&lt;BR /&gt;Here is a link to a script that someone wrote to do this as well:&lt;BR /&gt;&lt;A href="http://www.dutchworks.nl/htbin/hpsysadmin?h=3&amp;amp;dn=49762&amp;amp;q=force%20su&amp;amp;fh" target="_blank"&gt;http://www.dutchworks.nl/htbin/hpsysadmin?h=3&amp;amp;dn=49762&amp;amp;q=force%20su&amp;amp;fh&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Nov 2001 18:57:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606546#M35220</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-11-02T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts in preventing certains users(DBA) from logging in directly.  Force to "su"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606547#M35221</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The easiest way to do this, it to disable the oracle account. This will allow you to do two things. Force the DBA's to login as themselves and then 'su - oracle' and if you have more than one DBA you can track who did what and when. &lt;BR /&gt;I have found over the years that DBA's don't give a rats about security, so place them on a harness.&lt;BR /&gt;&lt;BR /&gt;This is the easiest way, but I am a firm believer in using 'sudo' so look into this, as the DBA's will not.&lt;BR /&gt;&lt;BR /&gt;My 2 cents worth&lt;BR /&gt;-Michael (AKA - not a DBA fan)&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Nov 2001 19:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripts-in-preventing-certains-users-dba-from-logging-in/m-p/2606547#M35221</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-02T19:48:44Z</dc:date>
    </item>
  </channel>
</rss>

