<?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 Prevent direct Login in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617233#M19384</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;We have the application ID's login directly to the systems. We want to prevent the application ID's ( eg : oracle) directly login to the system. Instead, the user has to login with their ID first and then do su - appID  to the application .&lt;BR /&gt;&lt;BR /&gt;How do we do this ?&lt;BR /&gt;&lt;BR /&gt;Thanks in Adv for the help !&lt;BR /&gt;&lt;BR /&gt;Rgds / JPMC&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Sep 2005 14:32:06 GMT</pubDate>
    <dc:creator>jpmc admin</dc:creator>
    <dc:date>2005-09-01T14:32:06Z</dc:date>
    <item>
      <title>Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617233#M19384</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;We have the application ID's login directly to the systems. We want to prevent the application ID's ( eg : oracle) directly login to the system. Instead, the user has to login with their ID first and then do su - appID  to the application .&lt;BR /&gt;&lt;BR /&gt;How do we do this ?&lt;BR /&gt;&lt;BR /&gt;Thanks in Adv for the help !&lt;BR /&gt;&lt;BR /&gt;Rgds / JPMC&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Sep 2005 14:32:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617233#M19384</guid>
      <dc:creator>jpmc admin</dc:creator>
      <dc:date>2005-09-01T14:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617234#M19385</link>
      <description>I am currently working on such as well. Here is what I have found thus far...&lt;BR /&gt;&lt;BR /&gt;In the /etc/passwd file, change the shell for the user account to /bin/false. Users can ftp and su to that account but not be able to login. (Have not tested yet)&lt;BR /&gt;&lt;BR /&gt;Use the output from 'who am i' and compare this with a file you create called '/etc/nodirectlogin'&lt;BR /&gt;&lt;BR /&gt;In the /etc/profile you have something similar;&lt;BR /&gt;WHO=`${who am i|awk '{print $1}'&lt;BR /&gt;grep -q "^$WHO:" /etc/nodirectlogin&lt;BR /&gt;if [ $? = 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo "$WHO cannot login directly"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;The /etc/nodirectlogin file has;&lt;BR /&gt;oracle&lt;BR /&gt;sybase&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;In the second example, just test for a user name in the /etc/profile, depending on the result, allow access or not. This will not affect the ability to su - &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Sep 2005 15:23:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617234#M19385</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-09-01T15:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617235#M19386</link>
      <description>You can use the pam_access module. Configure it in the /etc/pam.d/system-auth file.&lt;BR /&gt;&lt;BR /&gt;Then edit the /etc/security/access.conf file and specify that the user is not allowed to logon locally.&lt;BR /&gt;&lt;BR /&gt;-:oracle:LOCAL</description>
      <pubDate>Thu, 01 Sep 2005 15:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617235#M19386</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-01T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617236#M19387</link>
      <description>I also though the /bin/nologin /bin/false shell for the user, but won't be able to use the "su -" (with the -).</description>
      <pubDate>Thu, 01 Sep 2005 16:00:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617236#M19387</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-01T16:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617237#M19388</link>
      <description>&lt;BR /&gt;I just checked the man page of login program. Interestingly it checks /etc/usertty files for login restrictions, I believe you can configure it for users, groups wise.&lt;BR /&gt;&lt;BR /&gt;check the man page of login&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Fri, 02 Sep 2005 01:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617237#M19388</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-09-02T01:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617238#M19389</link>
      <description>--- /etc/profile ---&lt;BR /&gt;&lt;BR /&gt;if [[ $USER = "oracle" ]]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;  echo "plz login with your own ID. Then do su to applicaiton login ID"&lt;BR /&gt;  sleep 5&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Put this. It will start to work.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 02 Sep 2005 05:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617238#M19389</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-02T05:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617239#M19390</link>
      <description>The last script can be cancelled before the exit (withing the 5 seconds of sleep).&lt;BR /&gt;&lt;BR /&gt;If you want to use that, use the stty to disable the interrupt/break keys.</description>
      <pubDate>Fri, 02 Sep 2005 08:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617239#M19390</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-02T08:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617240#M19391</link>
      <description>Hi JPMC ,&lt;BR /&gt;&lt;BR /&gt;You can install sudo , and its very good tool to restrict users and various permission. &lt;BR /&gt;&lt;BR /&gt;You may look at this link :&lt;BR /&gt;&lt;A href="http://www.courtesan.com" target="_blank"&gt;http://www.courtesan.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers ,&lt;BR /&gt;Raj&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Sep 2005 09:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617240#M19391</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-02T09:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617241#M19392</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Change the application ID password so that it contains # or @ . Now with a telnet session this ID wont be able to login directly. This is my experience with HP-UX so far I havent tested on linux.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Fri, 02 Sep 2005 10:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617241#M19392</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-09-02T10:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617242#M19393</link>
      <description>The above solution won't allow su to that user without any other user than root, because you must specify the password.&lt;BR /&gt;&lt;BR /&gt;If you are going to use that solution, you should use sudo to enable users use su as root to applications users.</description>
      <pubDate>Fri, 02 Sep 2005 11:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617242#M19393</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-02T11:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617243#M19394</link>
      <description>If it's enough to prevent ssh logins, there's a really easy solution, even if it's 'the other way round':&lt;BR /&gt;&lt;BR /&gt;There's an option for sshd_config called AllowedGroups (or something like that).&lt;BR /&gt;&lt;BR /&gt;create a group 'interactive' and add all 'real' users to it, but not others like oracle,dba,bin,sys,lp and the likes.&lt;BR /&gt;&lt;BR /&gt;Every user that is not contained in the group will be prohibited login after daemon restart.</description>
      <pubDate>Fri, 02 Sep 2005 11:55:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617243#M19394</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-09-02T11:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617244#M19395</link>
      <description>Hi ivan,&lt;BR /&gt;&lt;BR /&gt;I think JPMC's need is to know who all are currently logged into the system. May be he doesnt mind to share the applID password with the users if this is his purpose.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Fri, 02 Sep 2005 11:59:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617244#M19395</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-09-02T11:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617245#M19396</link>
      <description>Muthukumar,&lt;BR /&gt;&lt;BR /&gt;You need to ensure to trap ^C and other commands, otherwise the oracle user will probably be logged in if someone hit's ^C, killing the sleep process.</description>
      <pubDate>Fri, 02 Sep 2005 12:09:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-direct-login/m-p/3617245#M19396</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-09-02T12:09:05Z</dc:date>
    </item>
  </channel>
</rss>

