<?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: How to remove login capability ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634996#M238286</link>
    <description>SEP has a point.&lt;BR /&gt;&lt;BR /&gt;Add the following traps to the logic&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ $LOGNAME == "speedware" ]&lt;BR /&gt;then&lt;BR /&gt;trap 1 2 3 15&lt;BR /&gt;echo "Please login as yourself and the su to the speedware account"&lt;BR /&gt;sleep 3&lt;BR /&gt;exit 1&lt;BR /&gt;fi</description>
    <pubDate>Mon, 26 Sep 2005 15:30:35 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2005-09-26T15:30:35Z</dc:date>
    <item>
      <title>How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634990#M238280</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I do a remove login capability (using telnet or rlogin) for a user but I can su do that user.&lt;BR /&gt;&lt;BR /&gt;For example, I created generic user speedwre but I don't want people to login directly as speedwre. They must first logon as there user then do a su to speedwre.&lt;BR /&gt;&lt;BR /&gt;I am using a hpux 11.23. I hope its clear.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2005 15:01:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634990#M238280</guid>
      <dc:creator>Speedware</dc:creator>
      <dc:date>2005-09-26T15:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634991#M238281</link>
      <description>You can put the following login in the /etc/profile to prevent the direct login&lt;BR /&gt;&lt;BR /&gt;if [ $LOGNAME == "speedware" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Please login as yourself and the su to the speedware account"&lt;BR /&gt;  sleep 3&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2005 15:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634991#M238281</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-09-26T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634992#M238282</link>
      <description>I thi k you need to go to a Trusted System....&lt;BR /&gt;&lt;BR /&gt;You could try this in /etc/profile:&lt;BR /&gt;&lt;BR /&gt;## &lt;BR /&gt;Restricted="sybase oracle dba" &lt;BR /&gt;for User in $Restricted &lt;BR /&gt;do &lt;BR /&gt; if [ $User = $LOGNAME ] ; then &lt;BR /&gt;  if [ "`who -a | grep $$ | awk '{print $8}'`" ]; then &lt;BR /&gt;  echo Sorry, you must first login with YOUR userid, then type \"su - $LOGNAME\" &lt;BR /&gt;    sleep 8 &lt;BR /&gt;    exit &lt;BR /&gt;  fi &lt;BR /&gt; fi &lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2005 15:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634992#M238282</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-26T15:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634993#M238283</link>
      <description>Hi Speedware &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What we do is to restrict diorect logins of SA's and DBA's , we add the following in /etc/profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;loginid=`who am i | awk '{print $1}'`&lt;BR /&gt;&lt;BR /&gt;echo $loginid&lt;BR /&gt;if [ $loginid = oracle ]&lt;BR /&gt;then&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;echo $loginid&lt;BR /&gt;if [ $loginid = root ]&lt;BR /&gt;then&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;and that way the user don directly log in , and su collects the log.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 26 Sep 2005 15:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634993#M238283</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2005-09-26T15:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634994#M238284</link>
      <description>Instead of setting this for individual user's .profile what we do is to execute &lt;BR /&gt;&lt;BR /&gt;  if [ -f /etc/no_login_allowed.sh ] ; then&lt;BR /&gt;           . /etc/no_login_allowed.sh&lt;BR /&gt;   fi&lt;BR /&gt;&lt;BR /&gt;script from /etc/profile .We add all the users for which direct log in is not allowed in  /etc/no_login.allowed .&lt;BR /&gt;&lt;BR /&gt;the /etc/no_login_allowed.sh executes logname command and greps the logname from /etc/no_login.allowed  .If it finds then exit . &lt;BR /&gt;&lt;BR /&gt;By this method you can reduce your hassle to set for each user .&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;BL.</description>
      <pubDate>Mon, 26 Sep 2005 15:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634994#M238284</guid>
      <dc:creator>baiju_3</dc:creator>
      <dc:date>2005-09-26T15:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634995#M238285</link>
      <description>Note that no matter what solution you use beside /usr/bin/false as the shell, its theoretically possible for the user to break out of the shell and gain command line access.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 26 Sep 2005 15:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634995#M238285</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-26T15:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634996#M238286</link>
      <description>SEP has a point.&lt;BR /&gt;&lt;BR /&gt;Add the following traps to the logic&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ $LOGNAME == "speedware" ]&lt;BR /&gt;then&lt;BR /&gt;trap 1 2 3 15&lt;BR /&gt;echo "Please login as yourself and the su to the speedware account"&lt;BR /&gt;sleep 3&lt;BR /&gt;exit 1&lt;BR /&gt;fi</description>
      <pubDate>Mon, 26 Sep 2005 15:30:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634996#M238286</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-09-26T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634997#M238287</link>
      <description>Cool,&lt;BR /&gt;Thanks for the quick response.&lt;BR /&gt;&lt;BR /&gt;I like the solutions. But I was hoping something built-in into HP-UX like a extra parameter into the /etc/passwd file. &lt;BR /&gt;&lt;BR /&gt;I am going to implement it.&lt;BR /&gt;&lt;BR /&gt;I don't really mind if they can break the shell as long as I know who they are on system.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2005 15:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634997#M238287</guid>
      <dc:creator>Speedware</dc:creator>
      <dc:date>2005-09-26T15:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634998#M238288</link>
      <description>It might be worth explaining exactly what your requirement is for wanting to do this as there may be other options you can use.&lt;BR /&gt;&lt;BR /&gt;I seem to recall that sudo can be configured to run processes as users other than just root and if its a specific process that needs to run as that user then more investigation into the configuration of sudo may be worthwhile.</description>
      <pubDate>Mon, 26 Sep 2005 15:41:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634998#M238288</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2005-09-26T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634999#M238289</link>
      <description>I don't want people to use generic user to get on the system. That's basically what I want.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2005 15:45:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3634999#M238289</guid>
      <dc:creator>Speedware</dc:creator>
      <dc:date>2005-09-26T15:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635000#M238290</link>
      <description>Then sudo may be of some use as you can allow them to run a new shell as if they were the generic user without the need to know the generic users password.&lt;BR /&gt;&lt;BR /&gt;I have done something similar in the past for a generic informix user as you can wrap scripts around the routine to report on which user is using the id and sudo will maintain its own logs.&lt;BR /&gt;&lt;BR /&gt;Do you have sudo installed - Its available from here if you don't have it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p9/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p9/&lt;/A&gt;</description>
      <pubDate>Mon, 26 Sep 2005 15:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635000#M238290</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2005-09-26T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635001#M238291</link>
      <description>I will take a look at it.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 26 Sep 2005 16:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635001#M238291</guid>
      <dc:creator>Speedware</dc:creator>
      <dc:date>2005-09-26T16:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635002#M238292</link>
      <description>Sudo is part of HP Internet Express as well, It is compiled with more options, You can download from &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 26 Sep 2005 22:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635002#M238292</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-09-26T22:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635003#M238293</link>
      <description>Just change the shell portion of the /etc/passwd entry to /bin/false.   That will prevent su and any other login from being succesful.  This is because on invocation it will execute /bin/false.  &lt;BR /&gt;&lt;BR /&gt;Also due to this it will never read /etc/profile, /etc/login, .profile or .login.  Solutions saying to update those risk people being able to break out if they hit ctrl-C quickly enough.</description>
      <pubDate>Tue, 27 Sep 2005 07:22:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635003#M238293</guid>
      <dc:creator>Jeff Lightner_1</dc:creator>
      <dc:date>2005-09-27T07:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove login capability ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635004#M238294</link>
      <description>Just a thought, but if you change to ssh login only, you can specify in the sshd_config file&lt;BR /&gt;DenyUsers user1 user2 whoever</description>
      <pubDate>Tue, 27 Sep 2005 09:50:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-login-capability/m-p/3635004#M238294</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-09-27T09:50:46Z</dc:date>
    </item>
  </channel>
</rss>

