[Bug 743858] [NEW] sshd not appending to /var/log/btmp

Launchpad Bug Tracker 743858 at bugs.launchpad.net
Tue Apr 22 13:21:31 UTC 2014


You have been subscribed to a public bug by Louis Bouchard (louis-bouchard):

SRU justification :
btmp logging had been removed in Debian a while ago due to protection to the /var/log/btmp file. This restriction is no longer true so it has been re-enabled on Debian.

Impact : 
Failure to login using ssh will be recorded in /var/log/btmp.

Fix : 
Change compilation time option

Test Case : 
$ ssh badname at localhost # hit 'enter' three times to fail logging in.
$ sudo lastb

Expected outcome:
"lastb" reports something similar to:
"badname    ssh:pts/1    localhost    Sun Mar 27 17:01 - 17:01 (04:00)"
just as it does when a bad login attempt is made using /bin/login, or when using sshd on other distributions of linux (CentOS, Fedora, Arch, SUSE, ...etc)

Actual outcome
No mention of a bad login attempt in lastb output; /var/log/btmp modify time and byte size is unchanged.

Regression : 
None expected, this used to be the default before it got disabled.

Original description of the problem :

Steps to reproduce:
$ ssh badname at localhost # hit 'enter' three times to fail logging in.
$ sudo lastb

Expected outcome:
"lastb" reports something similar to:
"badname    ssh:pts/1    localhost    Sun Mar 27 17:01 - 17:01 (04:00)"
just as it does when a bad login attempt is made using /bin/login, or when using sshd on other distributions of linux (CentOS, Fedora, Arch, SUSE, ...etc)

Actual outcome
No mention of a bad login attempt in lastb output; /var/log/btmp modify time and byte size is unchanged.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: openssh-server 1:5.3p1-3ubuntu6
Uname: Linux 2.6.18-128.2.1.el5.028stab064.7 x86_64
Architecture: amd64
Date: Sun Mar 27 16:40:55 2011
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 LC_CTYPE=C
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: openssh

** Affects: openssh (Ubuntu)
     Importance: Medium
     Assignee: Louis Bouchard (louis-bouchard)
         Status: Fix Released

** Affects: openssh (Ubuntu Precise)
     Importance: Medium
     Assignee: Louis Bouchard (louis-bouchard)
         Status: In Progress

** Affects: openssh (Ubuntu Saucy)
     Importance: Medium
     Assignee: Louis Bouchard (louis-bouchard)
         Status: In Progress

** Affects: openssh (Ubuntu Trusty)
     Importance: Medium
     Assignee: Louis Bouchard (louis-bouchard)
         Status: Fix Released


** Tags: amd64 apport-bug lucid
-- 
sshd not appending to /var/log/btmp
https://bugs.launchpad.net/bugs/743858
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list