[Pkg-shadow-devel] Bug#832047: manpage: login.defs lists incorrect default SUB_UID/GID_COUNT values

Louis-Philippe Véronneau pollito at riseup.net
Thu Jul 21 17:58:22 UTC 2016


Package: passwd
Version: 1:4.2-3
File: /etc/login.defs	

Hi!

The man page of `login.defs` says that the default value for these
parameters are:

 * SUB_UID_COUNT == 10000
 * SUB_GID_COUNT == 10000

Sadly, this is not the case. By default it seems to be "65536", which is
the default Ubuntu value.

This can be tested on any system by looking at `/etc/subuid` or
`/etc/subgid`:

$ cat /etc/subgid

systemd-timesync:100000:65536
systemd-network:165536:65536
systemd-resolve:231072:65536
systemd-bus-proxy:296608:65536
_apt:362144:65536
rdnssd:427680:65536
messagebus:493216:65536
avahi-autoipd:558752:65536
avahi:624288:65536
colord:689824:65536
dnsmasq:755360:65536
geoclue:820896:65536
pulse:886432:65536
lightdm:951968:65536
rtkit:1017504:65536
saned:1083040:65536
usbmux:1148576:65536
Debian-gdm:1214112:65536
hplip:1279648:65536

I guess that when merging the patches for `subuid` and `subgid` from
Ubuntu (#739981), default values were not reset.

I'm no expert here, but it seems you have two choices:

1) Change the man page
2) Change the default value to comply with the man page

Choosing to do 2) could have unforeseen consequences though.

Anyway, thanks for taking care of this package!

--
pollo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20160721/047e1f96/attachment.sig>


More information about the Pkg-shadow-devel mailing list