<?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 direct root login in ssh ... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937318#M411112</link>
    <description>thank you sir, its working</description>
    <pubDate>Sat, 29 Oct 2005 05:18:09 GMT</pubDate>
    <dc:creator>sukumar maddela</dc:creator>
    <dc:date>2005-10-29T05:18:09Z</dc:date>
    <item>
      <title>restricting direct root login in ssh ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937316#M411110</link>
      <description>Hai all,&lt;BR /&gt;&lt;BR /&gt;In my company every one are login directly as root. i would like to restrict that direct login to root. I would like all users to login using an individual user account and then use SU as necessary.&lt;BR /&gt;&lt;BR /&gt;plz prepose some solutions to this problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks and regards &lt;BR /&gt;sukumar</description>
      <pubDate>Sat, 29 Oct 2005 05:03:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937316#M411110</guid>
      <dc:creator>sukumar maddela</dc:creator>
      <dc:date>2005-10-29T05:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: restricting direct root login in ssh ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937317#M411111</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can edit this file /opt/ssh/etc/sshd_config&lt;BR /&gt;and set parameter PermitRootLogin to no. After you restart sshd daemon (/sbin/init.d/secsh restart) no root logins would be allowed.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;sve&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Oct 2005 05:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937317#M411111</guid>
      <dc:creator>Svetoslav Gyurov</dc:creator>
      <dc:date>2005-10-29T05:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: restricting direct root login in ssh ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937318#M411112</link>
      <description>thank you sir, its working</description>
      <pubDate>Sat, 29 Oct 2005 05:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937318#M411112</guid>
      <dc:creator>sukumar maddela</dc:creator>
      <dc:date>2005-10-29T05:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: restricting direct root login in ssh ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937319#M411113</link>
      <description>Hi Sukumar,&lt;BR /&gt;&lt;BR /&gt;Can you try this method as well..&lt;BR /&gt;&lt;BR /&gt;another way :-&lt;BR /&gt;Edit .profile of root as like these&lt;BR /&gt;#root.allow&lt;BR /&gt;user=`logname`;&lt;BR /&gt;sulog="/var/adm/sulog"&lt;BR /&gt;TTY="`tty | cut -d/ -f3`"&lt;BR /&gt;&lt;BR /&gt;if [ ${user} = "root" ]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;if [ ${TTY} != "console" ]&lt;BR /&gt;then&lt;BR /&gt;echo "&lt;ERR&gt;:root login allowed only through console..."&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;else&lt;BR /&gt;grep ${user} /etc/root.allow &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;if [ ${?} -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo "&lt;ERR&gt; : ${user} is NOT ALLOWED TO LOGIN AS root"&lt;BR /&gt;date=`date "+%m/%d %H:%M"`&lt;BR /&gt;echo "ERR ${date} - ${TTY} ${user}-root" &amp;gt;&amp;gt; ${sulog}&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;*****&lt;BR /&gt;create a file /etc/root.allow and enter user name who will allowed to do su.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But at my place I am using the method which is mentioned by Svetoslav Gyurov. But we are finding an alternative for this to restrict root login according to the PCs from where we are doing ssh to this machines. We are trying to achieving this using a script. So that only few machines will be able to use direct root logins along with the console. This will give more flexibility to us.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam&lt;/ERR&gt;&lt;/ERR&gt;</description>
      <pubDate>Sat, 29 Oct 2005 05:34:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937319#M411113</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-10-29T05:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: restricting direct root login in ssh ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937320#M411114</link>
      <description>Hi Sukumar,&lt;BR /&gt;&lt;BR /&gt;The above script I got from ITRC but not tested. Best method is going ahead with the sshd_config. Please assign only zero points for my posts as your problem is already resolved. Thank you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Sat, 29 Oct 2005 05:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937320#M411114</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-10-29T05:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: restricting direct root login in ssh ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937321#M411115</link>
      <description>through script it is more flexible, because as root i would like to restrict oracle account also. so i think this script will work. &lt;BR /&gt;&lt;BR /&gt;thank you syam.&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Oct 2005 05:42:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937321#M411115</guid>
      <dc:creator>sukumar maddela</dc:creator>
      <dc:date>2005-10-29T05:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: restricting direct root login in ssh ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937322#M411116</link>
      <description>unknowingly i had given the points to second message of syam, sorry for that.&lt;BR /&gt;&lt;BR /&gt;thanking you Svetoslav and syam.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Oct 2005 05:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937322#M411116</guid>
      <dc:creator>sukumar maddela</dc:creator>
      <dc:date>2005-10-29T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: restricting direct root login in ssh ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937323#M411117</link>
      <description>Hi Sukumar,&lt;BR /&gt;&lt;BR /&gt;See a thread already posted in ITRC.&lt;BR /&gt;&lt;BR /&gt;there are few scripts which will help you in making your own scripts. May be some modification required but i this this will help you.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=142175" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=142175&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Sat, 29 Oct 2005 05:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-direct-root-login-in-ssh/m-p/4937323#M411117</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-10-29T05:56:53Z</dc:date>
    </item>
  </channel>
</rss>

