<?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 lock an user account in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668932#M41762</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I have "Red Hat Enterprise Linux Server release 5.5 (Tikanga)" on an Itanium Machine.&lt;BR /&gt;&lt;BR /&gt;I want to set user privilege such that when a user attempts certain amount of unsuccessful logins, his account gets locked.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Arun Jain</description>
    <pubDate>Mon, 02 Aug 2010 09:18:05 GMT</pubDate>
    <dc:creator>Arun Jain</dc:creator>
    <dc:date>2010-08-02T09:18:05Z</dc:date>
    <item>
      <title>lock an user account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668932#M41762</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I have "Red Hat Enterprise Linux Server release 5.5 (Tikanga)" on an Itanium Machine.&lt;BR /&gt;&lt;BR /&gt;I want to set user privilege such that when a user attempts certain amount of unsuccessful logins, his account gets locked.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Arun Jain</description>
      <pubDate>Mon, 02 Aug 2010 09:18:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668932#M41762</guid>
      <dc:creator>Arun Jain</dc:creator>
      <dc:date>2010-08-02T09:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: lock an user account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668933#M41763</link>
      <description>From GUI you can configure through "Users &amp;amp; Groups" Optin in Administrative Menu. Or from X Window use the Command system-config-users this will give you the menu based screen.&lt;BR /&gt;&lt;BR /&gt;For Command Base Configuration follow the below link for reference.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cyberciti.biz/tips/rhel-centos-fedora-linux-log-failed-login.html" target="_blank"&gt;http://www.cyberciti.biz/tips/rhel-centos-fedora-linux-log-failed-login.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Aug 2010 09:48:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668933#M41763</guid>
      <dc:creator>Ishwar_1</dc:creator>
      <dc:date>2010-08-02T09:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: lock an user account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668934#M41764</link>
      <description>Check out file /etc/pam.d/system-auth&lt;BR /&gt;&lt;BR /&gt;and edit the below line&lt;BR /&gt;&lt;BR /&gt;auth        required      /lib/security/$ISA/pam_tally.so onerr=fail no_magic_root deny=3&lt;BR /&gt;&lt;BR /&gt;this defines that when the user trying to login with unsuccessful logins for 3 times, user gets locked.&lt;BR /&gt;&lt;BR /&gt;To unlock faillog -r -a &lt;UID&gt;&lt;/UID&gt;</description>
      <pubDate>Mon, 02 Aug 2010 12:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668934#M41764</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-08-02T12:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: lock an user account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668935#M41765</link>
      <description>along with the pam settings.  vi /etc/login.defs and change LOGIN_RETRIES from 5 to 3.</description>
      <pubDate>Mon, 02 Aug 2010 16:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668935#M41765</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2010-08-02T16:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: lock an user account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668936#M41766</link>
      <description>Still the thread is not closed? Do u except some more, please post you view.</description>
      <pubDate>Tue, 03 Aug 2010 14:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668936#M41766</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-08-03T14:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: lock an user account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668937#M41767</link>
      <description>Configure Policy to track and log failed login attempt recoreds.&lt;BR /&gt;&lt;BR /&gt;/var/log/faillog file were log gets generated.PAM Configuration to recored failed login attempts. Open /etc/pam.d/system-auth file:&lt;BR /&gt;&lt;BR /&gt;[root@rac1 ishwar]# vi /etc/pam.d/system-auth&lt;BR /&gt;&lt;BR /&gt;Append following 2 entry of pam_tally.so modules:&lt;BR /&gt;&lt;BR /&gt;auth required pam_tally.so no_magic_root&lt;BR /&gt;account required pam_tally.so deny=3 no_magic_root lock_time=180&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How to unlock the Lock Account&lt;BR /&gt;Syntax :- &lt;BR /&gt;/sbin/pam_tally: [--file rooted-filename] [--user username] [--reset[=n]] [--quiet]&lt;BR /&gt;&lt;BR /&gt;[root@rac1 ishwar]# /sbin/pam_tally --user vivek --reset --quiet&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How do I display all failed login attempts for user vivek?&lt;BR /&gt;&lt;BR /&gt;[root@rac1 ishwar]# faillog -u vivek&lt;BR /&gt;&lt;BR /&gt;Login       Failures Maximum Latest                   On&lt;BR /&gt;vivek           3        0   12/19/07 14:12:53 -0600  64.11.xx.yy&lt;BR /&gt;&lt;BR /&gt;Display faillog records for all users.&lt;BR /&gt;Use the -a option:&lt;BR /&gt;&lt;BR /&gt;[root@rac1 ishwar]# faillog -a&lt;BR /&gt;&lt;BR /&gt;How do I reset the counters of login failures?&lt;BR /&gt;The -r option can reset the counters of login failures or one record if used with the -u USERNAME option:&lt;BR /&gt;&lt;BR /&gt;[root@rac1 ishwar]# faillog -r&lt;BR /&gt;[root@rac1 ishwar]# faillog -r -u vivek &amp;lt;-- only reset counter for vivek user&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Aug 2010 18:25:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668937#M41767</guid>
      <dc:creator>Ishwar_1</dc:creator>
      <dc:date>2010-08-04T18:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: lock an user account</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668938#M41768</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;To do this, you will need to write a shell script that checks output from lastb and issues a passwd -l &lt;USERNAME&gt; command.&lt;BR /&gt;&lt;BR /&gt;Or you can install a third party product like E-trust.&lt;BR /&gt;&lt;BR /&gt;Or you can use a ldap/nis central login server that can be configured to this task.&lt;BR /&gt;&lt;BR /&gt;Linux out of the box seems to just let bad logins go on, and on and on and on...etc&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/USERNAME&gt;</description>
      <pubDate>Wed, 04 Aug 2010 18:59:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-an-user-account/m-p/4668938#M41768</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-08-04T18:59:55Z</dc:date>
    </item>
  </channel>
</rss>

