<?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 can i limit some users only login in console in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150473#M157445</link>
    <description>To limit all root logins to the real system console, just do this:&lt;BR /&gt; &lt;BR /&gt;echo console &amp;gt; /etc/securetty&lt;BR /&gt; &lt;BR /&gt;There are no other controls for console logins for other users.</description>
    <pubDate>Mon, 22 Dec 2003 20:54:33 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2003-12-22T20:54:33Z</dc:date>
    <item>
      <title>how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150467#M157439</link>
      <description>i want to limit some user only login in console  and can su to them.&lt;BR /&gt;or maybe can deny these users direct login but  can su  to them</description>
      <pubDate>Sun, 21 Dec 2003 21:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150467#M157439</guid>
      <dc:creator>郑刚_1</dc:creator>
      <dc:date>2003-12-21T21:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150468#M157440</link>
      <description>You will need to place a restriction either in the /etc/profile file or the users account .profile ($HOME/.profile) below is an example posting which has some options you can use as a  guide.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=274006" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=274006&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Dec 2003 00:58:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150468#M157440</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-12-22T00:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150469#M157441</link>
      <description>You can stop them loggin in by defining their shell to be /usr/bin/false.&lt;BR /&gt;&lt;BR /&gt;You could also use SAM to deactivate the user - this would prevent their being able to login, but would also disable their password, so if you wanted to su to the user, you would first have to gain root privilege.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Dec 2003 04:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150469#M157441</guid>
      <dc:creator>Alan Turner</dc:creator>
      <dc:date>2003-12-22T04:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150470#M157442</link>
      <description>The file /etc/usertty specifies additional access restrictions  for  specific  users.  &lt;BR /&gt;       (not  applicable to login implementations that use  PAM)&lt;BR /&gt;       If this  file does  not  exist,  no  additional  access  restrictions  are  imposed. &lt;BR /&gt;       The file consists of a  sequence of sections. &lt;BR /&gt;       There  are  three possible  section  types:  CLASSES, GROUPS and  USERS. &lt;BR /&gt;       I think that the USERS-SECTION can to be useful,.&lt;BR /&gt; &lt;BR /&gt;       See into your manual for explanations.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt;Bruno</description>
      <pubDate>Mon, 22 Dec 2003 05:37:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150470#M157442</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2003-12-22T05:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150471#M157443</link>
      <description>1]Put a check in the /etc/profile and find out from which IP and the userid the user is logging in and allow accrodingly.&lt;BR /&gt;2]if you want to deny direct console login then user /etc/securetty file.&lt;BR /&gt;3]Write a small script checking which users u want to allow to do su or use program like sudo which can be downloaded.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Dec 2003 06:17:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150471#M157443</guid>
      <dc:creator>Abskhan</dc:creator>
      <dc:date>2003-12-22T06:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150472#M157444</link>
      <description>please give me more info for /etc/usertty</description>
      <pubDate>Mon, 22 Dec 2003 20:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150472#M157444</guid>
      <dc:creator>郑刚_1</dc:creator>
      <dc:date>2003-12-22T20:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150473#M157445</link>
      <description>To limit all root logins to the real system console, just do this:&lt;BR /&gt; &lt;BR /&gt;echo console &amp;gt; /etc/securetty&lt;BR /&gt; &lt;BR /&gt;There are no other controls for console logins for other users.</description>
      <pubDate>Mon, 22 Dec 2003 20:54:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150473#M157445</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-12-22T20:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150474#M157446</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;If you could use the script it should look like this (it should be a portion in the ".profile" for each users' home directory)...&lt;BR /&gt;&lt;BR /&gt;The users who needs to have access to the system using "su" should be specified in the file "/etc/root.allow"&lt;BR /&gt;----------------------------&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;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;Mathew.&lt;BR /&gt;&lt;/ERR&gt;&lt;/ERR&gt;</description>
      <pubDate>Mon, 22 Dec 2003 21:03:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150474#M157446</guid>
      <dc:creator>Varghese Mathew</dc:creator>
      <dc:date>2003-12-22T21:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150475#M157447</link>
      <description>thank you&lt;BR /&gt;I do it.   edit the /etc/profile &lt;BR /&gt;and I want to know more about how to use&lt;BR /&gt;/etc/usertty</description>
      <pubDate>Mon, 22 Dec 2003 21:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150475#M157447</guid>
      <dc:creator>郑刚_1</dc:creator>
      <dc:date>2003-12-22T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150476#M157448</link>
      <description>Hi, é  å   &lt;BR /&gt;more info for usertty (man in attachment)&lt;BR /&gt; &lt;BR /&gt;HTH</description>
      <pubDate>Tue, 23 Dec 2003 04:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150476#M157448</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2003-12-23T04:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150477#M157449</link>
      <description>/etc/usertty is not documented in any HP-UX manuals and according to the man page attached in the previous message, it does not apply to logins authenticated by PAM. Starting with 11.00 and completed in 11.11, all authentication is accomplished through PAM modules. The above man page appears to be from another version of Unix. You'll have to use the /etc/profile method to control user access.</description>
      <pubDate>Tue, 23 Dec 2003 07:58:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150477#M157449</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-12-23T07:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150478#M157450</link>
      <description>Happy Birthday Bill!</description>
      <pubDate>Tue, 23 Dec 2003 09:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150478#M157450</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2003-12-23T09:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: how can i limit some users only login in console</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150479#M157451</link>
      <description>Do you solved your problem ?&lt;BR /&gt;  &lt;BR /&gt;If you want to assign points rad here&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Happy Holidays&lt;BR /&gt;Bruno</description>
      <pubDate>Wed, 31 Dec 2003 06:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-limit-some-users-only-login-in-console/m-p/3150479#M157451</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2003-12-31T06:49:29Z</dc:date>
    </item>
  </channel>
</rss>

