[arch-general] /var/log/btmp empty

Leonid Isaev lisaev at umail.iu.edu
Thu Feb 23 13:11:06 EST 2012


On Tue, 21 Feb 2012 21:54:42 +0530
gt <codered12 at gmail.com> wrote:

> Hello folks
> 
> My failed login attempts aren't being recorded, and lastb shows no
> output.
> 
> The permissions are correct:
> 
> -rw------- 1 root root 0 Nov 15 06:39 /var/log/btmp
> 
> Reading a previous message on the mailing list, i tried setting 
> 
> FTMP_FILE	/var/log/btmp
> 
> in /etc/login.defs. But this gives the following error (right after typing
> the username on a tty):
> 
> configuration error - unknown item 'FTMP_FILE' (notify administrator)
> 
> So two questions:
> 
> 1. Why isn't the option being recognised, even though it is present in
> the man page for login.defs?
> 
> 2. How do i enable logging to /var/log/btmp?
> 

I think FTMP_FILE is obsolete. Logging of failed login attempts is handled by
pam. Try running faillog(8)... Also I am not sure if /var/log/btmp has to be
kept at all.

-- 
Leonid Isaev
GnuPG key ID: 164B5A6D
Key fingerprint: C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20120223/2d96d759/attachment.asc>


More information about the arch-general mailing list