<?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: Locking user accounts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283451#M180852</link>
    <description>Thanks Curt and Steven for your help.</description>
    <pubDate>Fri, 21 May 2004 11:29:52 GMT</pubDate>
    <dc:creator>Lynda Badger</dc:creator>
    <dc:date>2004-05-21T11:29:52Z</dc:date>
    <item>
      <title>Locking user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283448#M180849</link>
      <description>Can you lock account after 3 attempts on an untrusted system. If so does someone have an example script.&lt;BR /&gt;&lt;BR /&gt;thanks in advance,&lt;BR /&gt;Lynda</description>
      <pubDate>Fri, 21 May 2004 10:52:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283448#M180849</guid>
      <dc:creator>Lynda Badger</dc:creator>
      <dc:date>2004-05-21T10:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Locking user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283449#M180850</link>
      <description>don't have a script handy, but can give some direction:&lt;BR /&gt;&lt;BR /&gt;in /etc/profile or elsewhere for csh and cde.&lt;BR /&gt;&lt;BR /&gt;set traps so users cant escape to the shell before doing this&lt;BR /&gt;&lt;BR /&gt;use lastb to get the last bad logins&lt;BR /&gt;/usr/bin/lastb -3 ${LOGNAME}&lt;BR /&gt;&lt;BR /&gt;use Mr. Stephenson's calendar script to find the time between now and when the last logins occured&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/merijn/caljd.sh" target="_blank"&gt;http://www.hpux.ws/merijn/caljd.sh&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/merijn/caljd.pl" target="_blank"&gt;http://www.hpux.ws/merijn/caljd.pl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;if the the bad attemps have happened in a certain amount of time, exit. &lt;BR /&gt;&lt;BR /&gt;They won't be able to login again until a certain amount of time has passed.&lt;BR /&gt;&lt;BR /&gt;to really lock them out (ftp and other things that might use the passwd file) you'll have to do something that will modify the users entry in the password file, maybe a script run by sudo.</description>
      <pubDate>Fri, 21 May 2004 11:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283449#M180850</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2004-05-21T11:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Locking user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283450#M180851</link>
      <description>This script will do it for any user.&lt;BR /&gt;&lt;BR /&gt;see attachement.&lt;BR /&gt;&lt;BR /&gt;Is called check_rootlogin but can easily be tweaked to work with any user.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 21 May 2004 11:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283450#M180851</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-21T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Locking user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283451#M180852</link>
      <description>Thanks Curt and Steven for your help.</description>
      <pubDate>Fri, 21 May 2004 11:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283451#M180852</guid>
      <dc:creator>Lynda Badger</dc:creator>
      <dc:date>2004-05-21T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Locking user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283452#M180853</link>
      <description>&lt;BR /&gt;Can someone please tell me where they are putting this script and the syntax for the execution?&lt;BR /&gt;&lt;BR /&gt;Would like to implement this script, so would like to know where it needs to be called from.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trev</description>
      <pubDate>Mon, 07 Aug 2006 06:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283452#M180853</guid>
      <dc:creator>WSS</dc:creator>
      <dc:date>2006-08-07T06:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Locking user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283453#M180854</link>
      <description>These scripts can be set in a common path which in my servers are /usr/local/bin and with the permission of 755 owned by root. This way, only root can edit but anyone can execute it. Hope this helped..</description>
      <pubDate>Mon, 07 Aug 2006 14:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283453#M180854</guid>
      <dc:creator>Anand Sreenivasan</dc:creator>
      <dc:date>2006-08-07T14:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Locking user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283454#M180855</link>
      <description>Lynda, sorry to add to your thread,but:&lt;BR /&gt;&lt;BR /&gt;SEP, are running that script with Cron?  How often?  what command did you use to disable the account?  I'd like it disabled (for root), but not for the console.  I've got some ideas on how to do this, I was interested to hear how you would do it (b/c of your cool headwear).&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Mon, 07 Aug 2006 14:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283454#M180855</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2006-08-07T14:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Locking user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283455#M180856</link>
      <description>&lt;BR /&gt;Anand, Yes of course it needs to reside somewhere on the server, and /usr/local/bin is as good as any ... But it just sits there doing nothing unless something calls it.&lt;BR /&gt;&lt;BR /&gt;Where would this happen? For instance would you put it in each users .profile? I don't think so as this is not read until a successful login. So what do you need to do to have this script working for each user? Where do you execute it from?&lt;BR /&gt;&lt;BR /&gt;Anyone?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance....&lt;BR /&gt;Trev</description>
      <pubDate>Tue, 08 Aug 2006 06:41:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/locking-user-accounts/m-p/3283455#M180856</guid>
      <dc:creator>WSS</dc:creator>
      <dc:date>2006-08-08T06:41:36Z</dc:date>
    </item>
  </channel>
</rss>

