[Adduser-devel] Bug#779880: adduser: deluser should delete users from AllowUsers field in sshd_config
it at forlongs.co.nz
Thu Mar 5 21:48:13 UTC 2015
In trying to optimise SSH security, I've limited our incoming users with the AllowUsers field in /etc/ssh/sshd_config.
When running 'deluser test', the test user still exists as an entry in AllowUsers.
When deleting a user, it would be good if the deleted user entry were also deleted from this location.
Alternatively, if the AllowUsers field appears to be in use, a warning message after the deletion of the user, to remind the system administrator to tidy up sshd_config. :)
-- System Information:
Debian Release: 7.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages adduser depends on:
ii debconf [debconf-2.0] 1.5.49
ii passwd 1:126.96.36.199-1
ii perl-base 5.14.2-21+deb7u2
adduser recommends no packages.
Versions of packages adduser suggests:
ii liblocale-gettext-perl 1.05-7+b1
ii perl-modules 5.14.2-21+deb7u2
-- debconf information:
More information about the Adduser-devel