Thanks Vasudeva and Joe,<br>Here it goes.<br>when I check the /usr/share/doc/pam-0.77/txts/README.pam_tally<br>It shows the options I can use. On that the deny option is part of account (not auth), may be later it has been moved to auth as I can see in online docs. Secondly it doesn't have the unlock_time option. That's why it's giving unknown option unlock_time.<br>
So the question here is, is there any way to block a user for a certain amount of time, and unlock automatically?<br><br>I got this clue from nahant-list <a href="http://www.redhat.com/archives/nahant-list/2006-August/msg00104.html">http://www.redhat.com/archives/nahant-list/2006-August/msg00104.html</a>.<br>
<br><br><div class="gmail_quote">2008/6/17 Joe_Wulf <<a href="mailto:Joe_Wulf@yahoo.com">Joe_Wulf@yahoo.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hmmmmmmm.....</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I see what you are saying about it being
an 'auth' option, not for account.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I'm going to work on this some more, on my
own and see what I can come up with.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Would like to further collaborate with you
regarding this, share lessons learned, etc....</span></font></p><div class="Ih2E3d">

<div>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"><br>
</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">R,<br>
-<b><span style="font-weight: bold;">Joe Wulf</span></b>, CISSP, USN(RET)<br>
 Senior IA Engineer<br>
 ProSync Technology Group, LLC<br>
 </span></font><b><u><font color="#333399" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: rgb(51, 51, 153); font-weight: bold;"><a href="http://www.prosync.com" target="_blank">www.prosync.com</a></span></font></u></b><font color="navy"><span style="color: navy;"><br>

<br>
</span></font></p>

</div>

</div><div>

<div style="margin-left: 0.5in; text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p style="margin-left: 0.5in;"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:pam-list-bounces@redhat.com" target="_blank">pam-list-bounces@redhat.com</a> [mailto:<a href="mailto:pam-list-bounces@redhat.com" target="_blank">pam-list-bounces@redhat.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Monu Agrawal<br>

<b><span style="font-weight: bold;">Sent:</span></b> Monday, June 16, 2008 15:14<div class="Ih2E3d"><br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:pam-list@redhat.com" target="_blank">pam-list@redhat.com</a><br>
</div><b><span style="font-weight: bold;">Subject:</span></b> RE: pam_tally: unknown
option</span></font></p>

</div><div><div></div><div class="Wj3C7c">

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p style="margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
Thanks Joe, but as per documents, deny and unlock_time are auth options, not
thee account options. When I changed the config as you mentioned:</span></font></p>

<p style="margin-left: 0.5in;"><font face="Courier New" size="2"><span style="font-size: 10pt;">account    
required      pam_tally.so deny=2</span></font></p>

<p style="margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
the error "unknown option deny" stopped coming but it didn't make any
difference in the time it waits after wrong passwd, even if I make it 20. The
version, I can't change because of some dependency reasons.</span></font></p>

<div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;">


<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
---------- Forwarded message ----------<br>
From: "Joe_Wulf" <<a href="mailto:Joe_Wulf@yahoo.com" target="_blank">Joe_Wulf@yahoo.com</a>><br>
To: "'Pluggable Authentication Modules'" <<a href="mailto:pam-list@redhat.com" target="_blank">pam-list@redhat.com</a>><br>
Date: Mon, 16 Jun 2008 08:37:29 -0400<br>
Subject: RE: pam_tally: unknown option</span></font></p>

<div link="blue" vlink="purple">

<div>

<p style="margin-left: 0.5in;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I've played with PAM
some, and am learning more all the time.  One resource I turn to pretty
frequently is the PAM documentation found at <a href="http://kernel.org/pub/linux/libs/pam" target="_blank">kernel.org/pub/linux/libs/pam</a>. 
>From what I've learned along the way, I think your "auth" line isn't
the right place for the "deny" option, and that would be why you get
the errors you do.</span></font></p>

<p style="margin-left: 0.5in;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p style="margin-left: 0.5in;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">What works for me is to
have the deny option be on the "account" line, as follows:</span></font></p>

<p style="margin-left: 0.5in;"><font face="Courier New" size="2"><span style="font-size: 10pt;">account    
required      /lib/security/$ISA/pam_tally.so deny=2</span></font></p>

<div>

<p style="margin-left: 0.5in;"><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">Secondly, I'd recommend upgrading to a
newer version of PAM, ..77 is quite outdated.  You'll probably have much
greater success with a newer release.</span></font></p>

<p style="margin-left: 0.5in;"><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">Good luck!</span></font></p>

<p style="margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in;"><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"><br>
</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">R,<br>
-<b><span style="font-weight: bold;">Joe Wulf</span></b>, CISSP, USN(RET)<br>
 Senior IA Engineer<br>
 ProSync Technology Group, LLC<br>
 </span></font><b><u><font color="#333399" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: rgb(51, 51, 153); font-weight: bold;"><a href="http://www.prosync.com" target="_blank">www.prosync.com</a></span></font></u></b></p>


</div>

<div>

<div style="margin-left: 0.5in;">

<div style="margin-left: 0.5in; text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

</div>

<p style="margin-left: 1in;"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> <a href="mailto:pam-list-bounces@redhat.com" target="_blank">pam-list-bounces@redhat.com</a>
[mailto:<a href="mailto:pam-list-bounces@redhat.com" target="_blank">pam-list-bounces@redhat.com</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Monu Agrawal<br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, June 16, 2008 07:39<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:pam-list@redhat.com" target="_blank">pam-list@redhat.com</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> pam_tally: unknown option</span></font></p>

</div>

<p style="margin-left: 1in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p style="margin-left: 1in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
I am using pam-0.77-65.1. The problem I am getting with it is, I am not able to
set deny and unlock_time options.<br>
My file looks like following:<br>
#%PAM-1.0<br>
auth       required    
pam_stack.so service=system-auth<br>
auth       required    
pam_nologin.so<br>
auth       required    
pam_tally.so deny=3 onerr=fail unlock_time=600<br>
account    required     pam_tally.so<br>
account    required     pam_stack.so
service=system-auth<br>
password   required     pam_stack.so
service=system-auth<br>
session    required     pam_stack.so
service=system-auth<br>
<br>
I am getting the following error messages on /var/log/messages<br>
<br>
Jun 16 17:05:32 ssc-216 pam_tally[26272]: pam_tally: unknown option; deny=3<br>
Jun 16 17:05:32 ssc-216 pam_tally[26272]: pam_tally: unknown option;
unlock_time=600<br>
<br>
Are these options available on the this particular version? Can anybody tell me
what is wrong with the above config?<br>
<br>
-- <br>
The things we know best are <br>
the things we haven't been taught.<br>
'Make Your Own Way'<br>
Monu Agrawal </span></font></p>

</div>

</div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
Pam-list mailing list<br>
<a href="mailto:Pam-list@redhat.com" target="_blank">Pam-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pam-list" target="_blank">https://www.redhat.com/mailman/listinfo/pam-list</a></span></font></p>

</blockquote>

</div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
The things we know best are <br>
the things we haven't been taught.<br>
'Make Your Own Way'<br>
Monu Agrawal </span></font></p>

</div></div></div>

</div>


<br>_______________________________________________<br>
Pam-list mailing list<br>
<a href="mailto:Pam-list@redhat.com">Pam-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pam-list" target="_blank">https://www.redhat.com/mailman/listinfo/pam-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>The things we know best are <br>the things we haven't been taught.<br>
'Make Your Own Way'<br> Monu Agrawal