Ticket #367 (closed defect: fixed)
nss-nonlocal should disallow numeric group names
Reported by: | andersk | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | -- | Keywords: | |
Cc: | Fixed in version: | ||
Upstream bug: |
Description
Currently, chown 0:0 file or chgrp 0 file causes the file to end up with gid 68499, which is the Moira group with name “0”. So nss_nonlocal should probably be filtering that group.
(This causes problems with dh_fixperms when building Debian packages. There is probably also a dh_fixperms bug here that should be reported upstream.)
Change History
Note: See
TracTickets for help on using
tickets.
Note that there are also legitimate groups with numeric names, such as “3” and “2012”. It might be idealistically valid, if not necessarily practical, to decide that applications that look up a gid as a name are buggy. Though tlyu notes that this behavior is specified by POSIX for the chown(1) and chgrp(1) commands, and it may be hard for scripts to work around that.