Yousong Zhou <yszhou4t...@gmail.com> wrote: > On 19 May 2017 at 18:44, Karl Palsson <ka...@tweak.net.au> > wrote: > > Resending to the list properly as planned... > > > > > > I've modified one of my packages (mosquitto) to use the > > autoassignment style, as it never cared about the actual uid/gid. > > > > However, is this really the expected behaviour? > > > > # cat /etc/passwd > > root:x:0:0:root:/root:/bin/ash > > daemon:*:1:1:daemon:/var:/bin/false > > ftp:*:55:55:ftp:/home/ftp:/bin/false > > network:*:101:101:network:/var:/bin/false > > nobody:*:65534:65534:nobody:/var:/bin/false > > avahi:x:105:105:avahi:/var/run/avahi:/bin/false > > dnsmasq:x:453:453:dnsmasq:/var/run/dnsmasq:/bin/false > > mosquitto:x:100:102:mosquitto:/var/run/mosquitto:/bin/false <<< > > 100:102?? > > > > > > I know I don't care, but getting 100 for uid and 102 for gid > > seems somewhat unexpected? Is it issuing ids from the same > > sequence or something? > > > > no, this is not how group_add_next works. please check the > content of /etc/group and see if there might already exist a > group of name "network" with id 101. >
Correct, "network" was a group too. But they why did it pick userid 100 for my service? Anyway, as I don't _really_ need them to have the same numbers for uid/gid, it's just traditional, is it now ok to go and make my package use the autoassignment? Or is this something that should get tidied up further in the autoassignment code? Sincerely, Karl Palsson # cat /etc/passwd root:x:0:0:root:/root:/bin/ash daemon:*:1:1:daemon:/var:/bin/false ftp:*:55:55:ftp:/home/ftp:/bin/false network:*:101:101:network:/var:/bin/false nobody:*:65534:65534:nobody:/var:/bin/false avahi:x:105:105:avahi:/var/run/avahi:/bin/false dnsmasq:x:453:453:dnsmasq:/var/run/dnsmasq:/bin/false mosquitto:x:100:102:mosquitto:/var/run/mosquitto:/bin/false # cat /etc/group root:x:0: daemon:x:1: adm:x:4: mail:x:8: audio:x:29: www-data:x:33: ftp:x:55: users:x:100: network:x:101: nogroup:x:65534: avahi:x:105:avahi dnsmasq:x:453:dnsmasq mosquitto:x:102:mosquitto root@eg-037BCC:/#
signature.html
Description: OpenPGP Digital Signature
_______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev