<?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: security questions in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926096#M46111</link>
    <description>Using the PAM modules and doing some configurations in the /etc/pamd.d/system-auth file&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.puschitz.com/SecuringLinux.shtml" target="_blank"&gt;http://www.puschitz.com/SecuringLinux.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here are some of the Table of Contents. Notice that locking accounts after too many logins is included.&lt;BR /&gt;&lt;BR /&gt;* Disabling System Services&lt;BR /&gt;* Checking Accounts&lt;BR /&gt;* Enabling Password Aging&lt;BR /&gt;* Enforcing Stronger Passwords&lt;BR /&gt;* Restricting Use of Previous Passwords&lt;BR /&gt;* Locking User Accounts After Too Many Login Failures&lt;BR /&gt;* Restricting Direct Login Access for System and Shared Accounts&lt;BR /&gt;* Restricting su Access to System and Shared Accounts&lt;BR /&gt;* Restricting System Access from Servers and Networks&lt;BR /&gt;* Preventing Accidental Denial of Service&lt;BR /&gt;* Checking File Permissions and Ownership&lt;BR /&gt;&lt;BR /&gt;Gotta hit the URL I posted. A very good site for this type of issue!</description>
    <pubDate>Wed, 28 Sep 2005 09:00:29 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2005-09-28T09:00:29Z</dc:date>
    <item>
      <title>security questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926089#M46104</link>
      <description>Group, have a couple of questions as relates to SOX and linux.  Need to know how to do the following if possible:&lt;BR /&gt;&lt;BR /&gt;1) Disable an account after three consecutive unsuccessful login attempts (I know I know - denial of service, I can live with that).&lt;BR /&gt;&lt;BR /&gt;2) How can I track unsuccessful logins over the long-term?&lt;BR /&gt;&lt;BR /&gt;3) How can I track su attempts over the long-term.&lt;BR /&gt;&lt;BR /&gt;Running Red Hat Linux 3.2.3-42&lt;BR /&gt;&lt;BR /&gt;Any help will be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;THANKS&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Sep 2005 13:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926089#M46104</guid>
      <dc:creator>Charles McCary</dc:creator>
      <dc:date>2005-09-14T13:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: security questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926090#M46105</link>
      <description>you have a command called lastb&lt;BR /&gt;&lt;BR /&gt;That will let you process the btmp file.&lt;BR /&gt;&lt;BR /&gt;All you have to do is this:&lt;BR /&gt;&lt;BR /&gt;lastb | sort -u &amp;gt; datafile&lt;BR /&gt;&lt;BR /&gt;while read -r username&lt;BR /&gt;  numbad=$(lastb | grep username | wc -l)&lt;BR /&gt;  if [ $numbad -ge 3 ]&lt;BR /&gt;     passwd -l $username&lt;BR /&gt;done &amp;lt; datafile&lt;BR /&gt;&lt;BR /&gt;You may wish to process the datafile with awk so that it is a pure user list and nothing else.&lt;BR /&gt;&lt;BR /&gt;| awk 'print $1'&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 14 Sep 2005 15:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926090#M46105</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-14T15:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: security questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926091#M46106</link>
      <description>Steve,&lt;BR /&gt;&lt;BR /&gt;I appreciate the feedback, I'm aware of lastb, but was looking for something more sophisticated (as in being able to set this somewhere, like I do on hp trusted system.)&lt;BR /&gt;&lt;BR /&gt;Anyway, if I use your script that's not necessarily the last three "consecutive" logins right, it's just any three bad logins that could have occured any time, unless I'm confused about how lastb works.&lt;BR /&gt;&lt;BR /&gt;C</description>
      <pubDate>Wed, 14 Sep 2005 15:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926091#M46106</guid>
      <dc:creator>Charles McCary</dc:creator>
      <dc:date>2005-09-14T15:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: security questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926092#M46107</link>
      <description>1) You need to configure the pam_tally module.&lt;BR /&gt;&lt;BR /&gt;2) /var/log/secure and lastb&lt;BR /&gt;&lt;BR /&gt;3) Add to the /etc/pam.d/su file the following:&lt;BR /&gt;&lt;BR /&gt;session required /lib/security/$ISA/pam_warn.so&lt;BR /&gt;session optional /lib/security/$ISA/pam_lastlog.so&lt;BR /&gt;&lt;BR /&gt;Now, using the last command you will see if the user has logon on the system, and the messages file will register the access using su.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926092#M46107</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-14T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: security questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926093#M46108</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just an word of warning with pam_lastlog.so it doesnt write to wtmp file on logout (see man pam_lastlog.so) so you end up with "gone - no logout" when you run the last command.&lt;BR /&gt;&lt;BR /&gt;Drove me nuts as we had pam_lastlog.so in all pam modules to track su'ing and ssh etc.&lt;BR /&gt;&lt;BR /&gt;Just a bit more noise in the advice on life :)&lt;BR /&gt;&lt;BR /&gt;Robert.&lt;BR /&gt;&lt;BR /&gt;As for the wanting to lock a user out after X attempts - I found this seems to work in the system-auth file (RHEL4):&lt;BR /&gt;&lt;BR /&gt;auth        required      /lib/security/$ISA/pam_tally.so onerr=fail no_magic_root&lt;BR /&gt;account     required      /lib/security/$ISA/pam_tally.so per_user deny=5 no_magic_root reset&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Sep 2005 21:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926093#M46108</guid>
      <dc:creator>Robert Walker_8</dc:creator>
      <dc:date>2005-09-14T21:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: security questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926094#M46109</link>
      <description>Group,&lt;BR /&gt;&lt;BR /&gt;I'll give these a try...thanks.&lt;BR /&gt;&lt;BR /&gt;c</description>
      <pubDate>Thu, 15 Sep 2005 07:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926094#M46109</guid>
      <dc:creator>Charles McCary</dc:creator>
      <dc:date>2005-09-15T07:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: security questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926095#M46110</link>
      <description>i just want to add that point 2 and 3 you should be able to cover with something like 'logwatch', it will send you a daily report of these activities.</description>
      <pubDate>Wed, 28 Sep 2005 04:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926095#M46110</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2005-09-28T04:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: security questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926096#M46111</link>
      <description>Using the PAM modules and doing some configurations in the /etc/pamd.d/system-auth file&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.puschitz.com/SecuringLinux.shtml" target="_blank"&gt;http://www.puschitz.com/SecuringLinux.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here are some of the Table of Contents. Notice that locking accounts after too many logins is included.&lt;BR /&gt;&lt;BR /&gt;* Disabling System Services&lt;BR /&gt;* Checking Accounts&lt;BR /&gt;* Enabling Password Aging&lt;BR /&gt;* Enforcing Stronger Passwords&lt;BR /&gt;* Restricting Use of Previous Passwords&lt;BR /&gt;* Locking User Accounts After Too Many Login Failures&lt;BR /&gt;* Restricting Direct Login Access for System and Shared Accounts&lt;BR /&gt;* Restricting su Access to System and Shared Accounts&lt;BR /&gt;* Restricting System Access from Servers and Networks&lt;BR /&gt;* Preventing Accidental Denial of Service&lt;BR /&gt;* Checking File Permissions and Ownership&lt;BR /&gt;&lt;BR /&gt;Gotta hit the URL I posted. A very good site for this type of issue!</description>
      <pubDate>Wed, 28 Sep 2005 09:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/security-questions/m-p/4926096#M46111</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-09-28T09:00:29Z</dc:date>
    </item>
  </channel>
</rss>

