<?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 loings based on username in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382961#M747423</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can see TCP Wrappers to restrict access to your host but it is based on ip address or hostname.&lt;BR /&gt;With this software you can keep traces of  connections and allow / deny access for ftp,telnet services. &lt;BR /&gt;It is free.&lt;BR /&gt;&lt;BR /&gt;Laurent</description>
    <pubDate>Thu, 23 Sep 2004 17:14:49 GMT</pubDate>
    <dc:creator>Montagne_3</dc:creator>
    <dc:date>2004-09-23T17:14:49Z</dc:date>
    <item>
      <title>restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382951#M747413</link>
      <description>Hi,&lt;BR /&gt;  I want to restrict login based on the &lt;BR /&gt;  username. &lt;BR /&gt; &lt;BR /&gt;  i.e I want to restrict logins/telnet from &lt;BR /&gt;  network for all except root and mylogin.&lt;BR /&gt;&lt;BR /&gt;  How can I do that also I want to restrict &lt;BR /&gt;  ftp services as well.&lt;BR /&gt;&lt;BR /&gt;  Thanks &lt;BR /&gt;  Amit</description>
      <pubDate>Tue, 21 Sep 2004 02:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382951#M747413</guid>
      <dc:creator>Amit Dixit_2</dc:creator>
      <dc:date>2004-09-21T02:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382952#M747414</link>
      <description>HI Amit,&lt;BR /&gt;You can restrict telnet/ftp in /var/adm/inetd.sec file. See man inetd.sec.&lt;BR /&gt;Also you can restrict it at network/hostname level but doubt if it is possible with Usernames.&lt;BR /&gt;You can use you machine IP and allow it and deny for everbody else.&lt;BR /&gt;Regards,</description>
      <pubDate>Tue, 21 Sep 2004 03:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382952#M747414</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-09-21T03:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382953#M747415</link>
      <description>Hi Amit,&lt;BR /&gt;&lt;BR /&gt;Take a look at this thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=700431" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=700431&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;Regards,&lt;BR /&gt;Sri Ram</description>
      <pubDate>Tue, 21 Sep 2004 03:06:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382953#M747415</guid>
      <dc:creator>R. Sri Ram Kishore_1</dc:creator>
      <dc:date>2004-09-21T03:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382954#M747416</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can restrict the ftp / telnet login in general using /var/adm/inetd.sec file or &lt;BR /&gt;/etc/ftpd/ftpusers for ftp and&lt;BR /&gt;/usr/bin/false as shell to prohibit telnet login&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Tue, 21 Sep 2004 03:11:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382954#M747416</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-09-21T03:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382955#M747417</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Check these out as well:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=94744" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=94744&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=93455" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=93455&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;Regards,&lt;BR /&gt;Sri Ram</description>
      <pubDate>Mon, 16 Sep 2024 09:20:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382955#M747417</guid>
      <dc:creator>R. Sri Ram Kishore_1</dc:creator>
      <dc:date>2024-09-16T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382956#M747418</link>
      <description>We can not use inetd.sec file userbased administration on login service.&lt;BR /&gt;&lt;BR /&gt;We can do it with profile file as,&lt;BR /&gt;&lt;BR /&gt; if [[ $LOGNAME != "root" || $LOGNAME != "mylogin" ]]&lt;BR /&gt; then&lt;BR /&gt;&lt;BR /&gt;    if [[ $(ps | grep -q telnetd) -eq 0 || $(ps | grep -q logins) -eq 0 ]]&lt;BR /&gt;    then&lt;BR /&gt;&lt;BR /&gt;    echo "Telnet service to $LOGNAME is denied. Contact admin now"&lt;BR /&gt;    sleep 3&lt;BR /&gt;    exit 1&lt;BR /&gt;&lt;BR /&gt;    fi&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;2. We can restrict ftp based on users with ftpusers file  there.&lt;BR /&gt;&lt;BR /&gt; See man ftpusers&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Sep 2004 03:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382956#M747418</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-21T03:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382957#M747419</link>
      <description>We can not use inetd.sec file, because it will be operated based on ip-address / network there. So one feasible way is to control users with the username and login service name on the /etc/profile there. So that every login will use that file to login and we can control there.&lt;BR /&gt;&lt;BR /&gt;ftp service restriction will be good and easy with ftpusers file right there.&lt;BR /&gt;&lt;BR /&gt;Refer this link for mroe,&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=664925" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=664925&lt;/A&gt;</description>
      <pubDate>Tue, 21 Sep 2004 03:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382957#M747419</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-21T03:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382958#M747420</link>
      <description>I would recommend not using /etc/profile or .profile scripts to control logins.  Shells have escape and meta characters that users can use to interfere with the operation of the script.&lt;BR /&gt;&lt;BR /&gt;I guess I'm wondering, if you don't want the users logging in, why you can't just make their login shell /usr/bin/false(for logins, not ftp) or put a "*" in their /etc/password entry.  If you chroot your ftp, then make sure you either use the ftpusers file or put a "*" in the chrooted /etc/password too.&lt;BR /&gt;&lt;BR /&gt;If you want more granular control, like expiration, number of simultaneous users, etc, check out /etc/default/security.  It's got a bunch of stuff.</description>
      <pubDate>Wed, 22 Sep 2004 10:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382958#M747420</guid>
      <dc:creator>Robert Fritz</dc:creator>
      <dc:date>2004-09-22T10:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382959#M747421</link>
      <description>Amit,&lt;BR /&gt;&lt;BR /&gt;  To restict network logins for the user account, you need to add some code to the /etc/profile that checks the username and kicks off it is not root or your own username.&lt;BR /&gt;&lt;BR /&gt;  To restrict ftp based on the login name, you need to create the /etc/ftpd/ftphosts file.&lt;BR /&gt;&lt;BR /&gt;  # vi /etc/ftpd/ftphosts&lt;BR /&gt;  deny user1 *&lt;BR /&gt;  #&lt;BR /&gt;&lt;BR /&gt;  Now the user user1 will not be able to login anywhere from the network.&lt;BR /&gt;&lt;BR /&gt;-- Sundar</description>
      <pubDate>Wed, 22 Sep 2004 10:38:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382959#M747421</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-22T10:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382960#M747422</link>
      <description>Some notes I have on this:&lt;BR /&gt;&lt;BR /&gt;(Incidentally, in AIX, just touch /etc/nologin to keep users off system.)&lt;BR /&gt;&lt;BR /&gt;1. One way to keep users from getting a login, etc., is to use allow and deny entries in /var/adm/inetd.sec.  You can specifiy a service to allow or deny and put host names or IP addresses to control.  See man on inetd.sec.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;telnet  deny    10.11-12  &lt;BR /&gt;telnet  allow   10.12.80.67 10.12.80.104&lt;BR /&gt;login   deny    10.11-12&lt;BR /&gt;login   allow   10.12.80.67&lt;BR /&gt;&lt;BR /&gt;This example denies anyone from accessing the system by either rlogin (login service) or login (telnet) from the 10.11-12 network.  It allows 2 specific IP address for those services.&lt;BR /&gt;&lt;BR /&gt;2. Another easy way to control logins, is to put a function in a menu or /etc/profile that allows quick login, but quickly displays a message and logs the user out.  I comment/uncomment this function to quickly control access.&lt;BR /&gt;&lt;BR /&gt;Example function:&lt;BR /&gt;&lt;BR /&gt;function no_access&lt;BR /&gt;{&lt;BR /&gt;# Allowed users:&lt;BR /&gt;OK_TO_LOGIN="root|mp5802"&lt;BR /&gt;if [ !  x`echo $LOGNAME | egrep -v $OK_TO_LOGIN` = "x" ]; then&lt;BR /&gt;  clear&lt;BR /&gt;  echo ""&lt;BR /&gt;  echo ""&lt;BR /&gt;  echo "     SYSTEM IS UNAVAILABLE"&lt;BR /&gt;  echo ""&lt;BR /&gt;  echo ""&lt;BR /&gt;  sleep 3&lt;BR /&gt;  exit&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;# now call the function:&lt;BR /&gt;no_access&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2004 11:24:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382960#M747422</guid>
      <dc:creator>Mike Patterson</dc:creator>
      <dc:date>2004-09-22T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: restricting loings based on username</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382961#M747423</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can see TCP Wrappers to restrict access to your host but it is based on ip address or hostname.&lt;BR /&gt;With this software you can keep traces of  connections and allow / deny access for ftp,telnet services. &lt;BR /&gt;It is free.&lt;BR /&gt;&lt;BR /&gt;Laurent</description>
      <pubDate>Thu, 23 Sep 2004 17:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-loings-based-on-username/m-p/3382961#M747423</guid>
      <dc:creator>Montagne_3</dc:creator>
      <dc:date>2004-09-23T17:14:49Z</dc:date>
    </item>
  </channel>
</rss>

