<?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 user access in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497240#M830442</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;"man inetd.sec" will probably help you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Patrice.</description>
    <pubDate>Thu, 22 Feb 2001 13:10:11 GMT</pubDate>
    <dc:creator>MARTINACHE</dc:creator>
    <dc:date>2001-02-22T13:10:11Z</dc:date>
    <item>
      <title>Restricting user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497239#M830441</link>
      <description>Is there a way to restrict terminal session logons for specific users? (similar to securetty for root)</description>
      <pubDate>Thu, 22 Feb 2001 12:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497239#M830441</guid>
      <dc:creator>Paul Czetwertynski</dc:creator>
      <dc:date>2001-02-22T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497240#M830442</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;"man inetd.sec" will probably help you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Patrice.</description>
      <pubDate>Thu, 22 Feb 2001 13:10:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497240#M830442</guid>
      <dc:creator>MARTINACHE</dc:creator>
      <dc:date>2001-02-22T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497241#M830443</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you are using sshd v2 for remote sessions, then you can easily restrict user access from specific IP addresses by simply making use of the SSH2_CLIENT variable which reflects the IP address from which you connect from and the LOGNAME variable. &lt;BR /&gt;&lt;BR /&gt;Using these two variables in /etc/profile, you can force a user to disconnect if the LOGNAME and SSH2_CLIENT variables are not associated.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Thu, 22 Feb 2001 13:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497241#M830443</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-02-22T13:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497242#M830444</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;Edit /etc/profile and /etc/cshrc and check tty &lt;BR /&gt;whith tty command az user with $LOGNAME or id -un command. Exit if not allowed.&lt;BR /&gt;&lt;BR /&gt;With the /var/adm/inetd.sec file You can filter acces by IP address.&lt;BR /&gt;&lt;BR /&gt;regards, Saa</description>
      <pubDate>Thu, 22 Feb 2001 13:35:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497242#M830444</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-02-22T13:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497243#M830445</link>
      <description>Although the OS does not provide this capability directly (there is nothing &lt;BR /&gt;similar to /etc/securetty for root), adding the following statements to &lt;BR /&gt;/etc/profile or /etc/csh.login should prevent a certain user from &lt;BR /&gt;login but allow su - username. &lt;BR /&gt;&lt;BR /&gt;Expand on the "if" statement if there are multiple accounts. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For Bourne and POSIX shells, add the following to /etc/profile: &lt;BR /&gt;&lt;BR /&gt;name=`logname` &lt;BR /&gt;if [ $name = username ] &lt;BR /&gt;then &lt;BR /&gt;echo $name not allowed to login...only su &lt;BR /&gt;exit &lt;BR /&gt;fi &lt;BR /&gt;#end &lt;BR /&gt;&lt;BR /&gt;For C shell, add the following to /etc/csh.login: &lt;BR /&gt;&lt;BR /&gt;set name=`logname` &lt;BR /&gt;if ( $name == username ) then &lt;BR /&gt;echo $name not allowed to login...only su &lt;BR /&gt;exit &lt;BR /&gt;endif &lt;BR /&gt;#end &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Feb 2001 15:26:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497243#M830445</guid>
      <dc:creator>unixdaddy</dc:creator>
      <dc:date>2001-02-22T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting user access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497244#M830446</link>
      <description>Place this snip at the bottom of your system profile.  Change the UID's top match those you want to have access.  Touch /etc/nologin and remove when finished.&lt;BR /&gt;&lt;BR /&gt;We use this during system maintenance as our users never seem to listen to our guidance.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Ray&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Check for file /etc/nologin.  If present, log the users off (system&lt;BR /&gt;# maintenance in effect).&lt;BR /&gt;&lt;BR /&gt;if [ -r /etc/nologin ]&lt;BR /&gt;then&lt;BR /&gt;        case `/usr/bin/id -u` in&lt;BR /&gt;                0|103|101|104|185)&lt;BR /&gt;                echo "\n\n\n";&lt;BR /&gt;                echo "       --&amp;gt; NOTICE &amp;lt;---";&lt;BR /&gt;                echo "User login is currently disabled because of system mainten&lt;BR /&gt;ance";&lt;BR /&gt;                echo "However, you will be allowed in.";&lt;BR /&gt;                echo "\nPress Enter to continue...\c";&lt;BR /&gt;                read junk;;&lt;BR /&gt;        *)&lt;BR /&gt;                sleep 2;&lt;BR /&gt;                clear;&lt;BR /&gt;                echo "\n\n\n\n\n\n\n\n";&lt;BR /&gt;                echo "  The system is currently unavailable.";&lt;BR /&gt;                echo "  Please try again later.  DPI Helpdesk can be contacted @&lt;BR /&gt;4298.";&lt;BR /&gt;                sleep 5;&lt;BR /&gt;                exit 1;;</description>
      <pubDate>Thu, 22 Feb 2001 17:22:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-user-access/m-p/2497244#M830446</guid>
      <dc:creator>Ray Evans</dc:creator>
      <dc:date>2001-02-22T17:22:01Z</dc:date>
    </item>
  </channel>
</rss>

