mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 2/2] avahi: add user to /etc/passwd
@ 2014-12-16 22:20 Robert Schwebel
  2014-12-17  8:30 ` Alexander Dahl
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Schwebel @ 2014-12-16 22:20 UTC (permalink / raw)
  To: ptxdist; +Cc: Robert Schwebel

We re-use the uids from Debian.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
 generic/etc/passwd | 1 +
 1 file changed, 1 insertion(+)

diff --git a/generic/etc/passwd b/generic/etc/passwd
index 49c13c6..f5f5c41 100644
--- a/generic/etc/passwd
+++ b/generic/etc/passwd
@@ -4,6 +4,7 @@ ftp:x:11:101:ftp user:/home:/bin/false
 www:x:12:102:www user:/home:/bin/false
 sshd:x:100:65534:SSH Server:/var/run/sshd:/bin/false
 messagebus:x:103:104:messagebus:/dev/null:/bin/false
+avahi:x:107:115:Avahi mDNS daemon:/var/run/avahi-daemon:/bin/false
 systemd-network:x:202:202:systemd-network:/dev/null:/bin/false
 systemd-resolve:x:203:65534:systemd-resolve:/dev/null:/bin/false
 systemd-timesync:x:203:65534:systemd-timesync:/dev/null:/bin/false
-- 
2.1.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH 2/2] avahi: add user to /etc/passwd
  2014-12-16 22:20 [ptxdist] [PATCH 2/2] avahi: add user to /etc/passwd Robert Schwebel
@ 2014-12-17  8:30 ` Alexander Dahl
  2014-12-17  9:31   ` Robert Schwebel
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Dahl @ 2014-12-17  8:30 UTC (permalink / raw)
  To: ptxdist

Hei hei, 

Am 2014-12-16 23:20, schrieb Robert Schwebel:
> We re-use the uids from Debian.

Which are not fixed. See from the desktop I'm working on:

% grep avahi /etc/passwd
avahi:x:105:112:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false

Same for messagebus btw:

% grep messagebus /etc/passwd
messagebus:x:101:105::/var/run/dbus:/bin/false

Or systemd (on another machine):

% grep systemd /etc/passwd
systemd-timesync:x:107:112:systemd Time
Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:108:113:systemd Network
Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:109:114:systemd
Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:110:115:systemd Bus Proxy,,,:/run/systemd:/bin/false

AFAIK Debian uses the next free uid when a service is installed for the
first time and creates its system users. See `man 8 adduser`.

>  sshd:x:100:65534:SSH Server:/var/run/sshd:/bin/false

Three different UIDs on three different Debian machines: 100, 103, 114 …
I would probably find even more.

>  messagebus:x:103:104:messagebus:/dev/null:/bin/false
> +avahi:x:107:115:Avahi mDNS daemon:/var/run/avahi-daemon:/bin/false
>  systemd-network:x:202:202:systemd-network:/dev/null:/bin/false
>  systemd-resolve:x:203:65534:systemd-resolve:/dev/null:/bin/false
>  systemd-timesync:x:203:65534:systemd-timesync:/dev/null:/bin/false

Long story short: there are no fixed UIDs in Debian, just something like
classes. See "9.2.2 UID and GID classes" on
https://www.debian.org/doc/debian-policy/ch-opersys.html for details.

Of course its fine to choose any default uid/gid for ptxdist, but
re-using them from Debian is misleading. ;-)

HTH & Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH 2/2] avahi: add user to /etc/passwd
  2014-12-17  8:30 ` Alexander Dahl
@ 2014-12-17  9:31   ` Robert Schwebel
  2014-12-17 15:29     ` Uwe Kleine-König
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Schwebel @ 2014-12-17  9:31 UTC (permalink / raw)
  To: ptxdist

On Wed, Dec 17, 2014 at 09:30:13AM +0100, Alexander Dahl wrote:
> Am 2014-12-16 23:20, schrieb Robert Schwebel:
> > We re-use the uids from Debian.
> 
> Which are not fixed. See from the desktop I'm working on:

Uuuh, bad. Is there any distro out there with fixed numbers? Oterwhise
we might just invent our own scheme.

rsc
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH 2/2] avahi: add user to /etc/passwd
  2014-12-17  9:31   ` Robert Schwebel
@ 2014-12-17 15:29     ` Uwe Kleine-König
  0 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2014-12-17 15:29 UTC (permalink / raw)
  To: ptxdist

On Wed, Dec 17, 2014 at 10:31:21AM +0100, Robert Schwebel wrote:
> On Wed, Dec 17, 2014 at 09:30:13AM +0100, Alexander Dahl wrote:
> > Am 2014-12-16 23:20, schrieb Robert Schwebel:
> > > We re-use the uids from Debian.
> > 
> > Which are not fixed. See from the desktop I'm working on:
> 
> Uuuh, bad. Is there any distro out there with fixed numbers? Oterwhise
> we might just invent our own scheme.
Debian has (some) fixed uids. But this only applies to the ranges 0-99
and 60000-64999. See /usr/share/doc/base-passwd/README and
/usr/share/base-passwd/passwd.master. (Fun fact: mysql has uid 106 on my
vserver even though it has been granted a fixed uid.)

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-17 15:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-16 22:20 [ptxdist] [PATCH 2/2] avahi: add user to /etc/passwd Robert Schwebel
2014-12-17  8:30 ` Alexander Dahl
2014-12-17  9:31   ` Robert Schwebel
2014-12-17 15:29     ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox