Re: pam_tally... may missing.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think you want to add this argument:

   no_magic_root

to your /etc/pam.d/login file. Try browsing here:

http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/pam-6.html#ss6.24

and also here:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pam/Linux-PAM/modules/pam_tally/README?rev=1.1.1.1&content-type=text/vnd.viewcvs-markup

Cheers

Andrew

Junyoung Heo wrote:
> 
> In pam_sm_authenticate of pam_tally..
> It calls tally_bump().
> and tally_bump() has following codes.
> if (no_magic_root || getuid()) {
>         tally += inc;
>         .....
> }
> 
> getuid() always return '0', because login is owned by root(0), I think.
> So, pam_tally cannot increment tally value in authentication step and
> dosen't work correctly.
> 
> so, i modified it. use 'uid' variable instead of 'getuid()' function.
> uid is returned by pam_get_uid();
> after above modification, pam_tally work correctly.
> 
> pam_sm_acct_mgmt has same problem..
> 
> Am I wrong?
> 
> --
> -----------------
> Junyoung Heo (ÇãÁØ¿µ)
> 
> _______________________________________________
> 
> Pam-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/pam-list





[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux