[Bug 743858] Re: sshd not appending to /var/log/btmp
Chris J Arges
743858 at bugs.launchpad.net
Mon Apr 7 13:54:27 UTC 2014
@laney, I verified that in precise/saucy/trusty /var/log/btmp is set to
0660. With that and Colin's comment in #5, I think these do make sense.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/743858
Title:
sshd not appending to /var/log/btmp
Status in “openssh” package in Ubuntu:
Fix Released
Status in “openssh” source package in Precise:
In Progress
Status in “openssh” source package in Saucy:
In Progress
Status in “openssh” source package in Trusty:
Fix Released
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/743858/+subscriptions
More information about the Ubuntu-sponsors
mailing list