Sample Header Ad - 728x90

What is an appropriate UID and GID for a Debian package file owner?

3 votes
1 answer
2754 views
I am currently building my own aptitude repository, and in the process of ensuring that all packages pass as many Lintian checks as possible. Currently I am struggling with 'wrong-file-owner-uid-or-gid' (initial information here , more detailed information here ), and am unsure what a suitable number to use for UID and GID is. Currently I am building packages on an AWS Ubuntu machine: $ id ubuntu uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),102(netdev) These are all as default on the machine. The first link provided says: > The set of the allowed, globally allocated IDs consists of the ranges 0-99, 64000-64999 and 65534. Of these ranges, the second link states: >0-99: Globally allocated by the Debian project, the same on every Debian system. These ids will appear in the passwd and group files of all Debian systems, new ids in this range being added automatically as the base-passwd package is updated. >Packages which need a single statically allocated uid or gid should use one of these; their maintainers should ask the base-passwd maintainer for ids. >60000-64999: Globally allocated by the Debian project, but only created on demand. The ids are allocated centrally and statically, but the actual accounts are only created on users' systems on demand. >These ids are for packages which are obscure or which require many statically-allocated ids. These packages should check for and create the accounts in /etc/passwd or /etc/group (using adduser if it has this facility) if necessary. Packages which are likely to require further allocations should have a "hole" left after them in the allocation, to give them room to grow. >65534: User nobody. The corresponding gid refers to the group nogroup. Can somebody help explain how to conform to this Lintian check for Debian packages? Is it as straightforward as changing the user's UID and GID? What is the most appropriate ID number to choose?
Asked by Mike Roberts (132 rep)
Jan 9, 2016, 12:00 PM
Last activity: Jan 9, 2016, 04:55 PM