<?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 Restrict Direct Login in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761764#M259533</link>
    <description>Is there a way to configure ssh to disable remote login access for a non-root user (a DBA), so the user is required to login with an individual account and su to the DBA ID?&lt;BR /&gt;&lt;BR /&gt;OS is 11.i.</description>
    <pubDate>Wed, 29 Mar 2006 19:45:35 GMT</pubDate>
    <dc:creator>Global Server Operation</dc:creator>
    <dc:date>2006-03-29T19:45:35Z</dc:date>
    <item>
      <title>Restrict Direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761764#M259533</link>
      <description>Is there a way to configure ssh to disable remote login access for a non-root user (a DBA), so the user is required to login with an individual account and su to the DBA ID?&lt;BR /&gt;&lt;BR /&gt;OS is 11.i.</description>
      <pubDate>Wed, 29 Mar 2006 19:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761764#M259533</guid>
      <dc:creator>Global Server Operation</dc:creator>
      <dc:date>2006-03-29T19:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761765#M259534</link>
      <description>man sshd on my 11.11 system has:&lt;BR /&gt;&lt;BR /&gt;      Regardless of the authentication type, the account is checked to&lt;BR /&gt;      ensure that it is accessible.  An account is not accessible if it is&lt;BR /&gt;      locked, listed in DenyUsers or its group is listed in DenyGroups .&lt;BR /&gt;&lt;BR /&gt;Also, cant you just replace the password field in /etc/passwd (assuming you are not using shadow passwords or trusted mode) with a * for that DBA user thus forcing all users to log in as them selves and then using su ?&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Mar 2006 20:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761765#M259534</guid>
      <dc:creator>Richard Allen</dc:creator>
      <dc:date>2006-03-29T20:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761766#M259535</link>
      <description>I dont see a way. You cant restrict a user to not login through ssh unless you make the shell as nologin but in your case you cant do that as its DBA administrator login.&lt;BR /&gt;&lt;BR /&gt;The Only solution in my mind for your problem is by hiding the password of DBA with you, so no one can login and when then want to su to DBA account let them use sudo to do that.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Mar 2006 20:36:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761766#M259535</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2006-03-29T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761767#M259536</link>
      <description>It is possible by not giving the password to such accounts and keep accounts locked.. &lt;BR /&gt;Only sudo to account will be allowed this way.. &lt;BR /&gt;Configuring sudoers is better way.. I dont know a way through ssh.. &lt;BR /&gt;&lt;BR /&gt;Hope it helps&lt;BR /&gt;Thanks&lt;BR /&gt;Prashant</description>
      <pubDate>Wed, 29 Mar 2006 21:09:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761767#M259536</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2006-03-29T21:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761768#M259537</link>
      <description>Demat,&lt;BR /&gt;&lt;BR /&gt;Under the authentication section in the sshd_config file add a&lt;BR /&gt;line to deny users like this:&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;# Authentication:&lt;BR /&gt;&lt;BR /&gt;#LoginGraceTime 600&lt;BR /&gt;PermitRootLogin no&lt;BR /&gt;DenyUsers titi toto tutu tata &amp;lt;----&lt;BR /&gt;#StrictModes yes&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;You can also restrict users at the group level but note that this does not&lt;BR /&gt;stop anyone from logging in as themselves and SU'ing to the user that is not&lt;BR /&gt;allowed in,( assuming they know the password).&lt;BR /&gt;&lt;BR /&gt;$ man sshd_config&lt;BR /&gt;[snip]&lt;BR /&gt;DenyUsers&lt;BR /&gt;    This keyword can be followed by a list of user name patterns,&lt;BR /&gt;    separated by spaces. Login is disallowed for user names that&lt;BR /&gt;    match one of the patterns. `*' and `'? can be used as wildcards&lt;BR /&gt;    in the patterns. Only user names are valid; a numerical user ID&lt;BR /&gt;    is not recognized. By default, login is allowed for all users.&lt;BR /&gt;    If the pattern takes the form USER@HOST then USER and HOST are&lt;BR /&gt;    separately checked, restricting logins to particular users from&lt;BR /&gt;    particular hosts. &lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Pat</description>
      <pubDate>Thu, 30 Mar 2006 00:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761768#M259537</guid>
      <dc:creator>Patrice Le Guyader</dc:creator>
      <dc:date>2006-03-30T00:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761769#M259538</link>
      <description>Thanks. I will give it a try.</description>
      <pubDate>Thu, 30 Mar 2006 06:57:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761769#M259538</guid>
      <dc:creator>Global Server Operation</dc:creator>
      <dc:date>2006-03-30T06:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761770#M259539</link>
      <description>Or if you want to restrict what logins can ssh login:&lt;BR /&gt;&lt;BR /&gt;AllowUsers larry,curly,moe&lt;BR /&gt;&lt;BR /&gt;If you've a need to restrict SSH direct login and restrict root login to the console and follow /etc/securetty. OpenSSH 4.2p1 (or the latest HP Secure Shell) now finally plugs this hole. Simply add:&lt;BR /&gt;&lt;BR /&gt;EnforceSecureTTY yes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With this, root will no longer be able to ssh direct - BUT will still be able to do "ssh server some-command".&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Mar 2006 14:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761770#M259539</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2006-03-30T14:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict Direct Login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761771#M259540</link>
      <description>Depending on what version of 11.i you have, look into RBAC (Role Based Access Control)&lt;BR /&gt;&lt;BR /&gt;Provides greater granularity for these types of controls.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Mar 2006 14:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-direct-login/m-p/3761771#M259540</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-03-30T14:34:13Z</dc:date>
    </item>
  </channel>
</rss>

