LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-29-2011, 01:16 PM   #1
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
pam_tally2 oddity and functionality


rhel 5.7
pam-0.99.6.2

ok, i run pam_tally2.so in system-auth like this
auth required pam_tally2.so onerr=fail deny=3 unlock_time=900 audit
account required pam_tally2.so

1. "magic_root" is suppose to be a valid option for auth, but when i use it the tally breaks for all users (no tally'ing is done). that seems like a bug.

2. i run a short bash script to output me a report piping all users into pam_tally2 like this:
Code:
USERS=`cat /etc/passwd |cut -d: -f1 |sort`
for i in $USERS
   do
    pam_tally2 -u $i |awk 'FNR == 2 {print}' |awk '{ print $1, ",", $2, ",", $3, " ", $4, ",", $5}' >> file.csv     
   done
weird thing is, i have another user with uid=0 gid=0 but pam_tally2 reports the username as "root". is that normal?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL5.7 pam_tally vs pam_tally2 Linux_Kidd Linux - Security 0 09-28-2011 09:16 AM
[SOLVED] pam_tally2 locking new users theillien Linux - Security 2 07-14-2011 03:16 PM
Pam_tally2 lockout in audit log killfast Linux - Security 4 02-16-2011 08:23 PM
pam_tally2 prevent lockout Theleo Linux - Security 5 05-18-2010 11:40 AM
apt-get oddity EricHeindel Debian 1 04-26-2006 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration