From bd5eb72e109243f35b019582fab36a42a7b12682 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sun, 25 Aug 2013 16:12:14 -0400 Subject: [PATCH] doc/adapting-existing: Describe /lib/passwd --- doc/adapting-existing.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/adapting-existing.xml b/doc/adapting-existing.xml index c21f6f32..b8295f04 100644 --- a/doc/adapting-existing.xml +++ b/doc/adapting-existing.xml @@ -162,6 +162,31 @@ d /run/media 0755 root root - + + /lib/passwd + + In order to ship an OS that contains both system users and users + dynamically created on client machines, you will need to choose + a solution for /etc/passwd. The core + problem is that if you add a user to the system for a daemon, + the OSTree upgrade process for /etc will simply notice that + because /etc/passwd differs from the + previous default, it will keep the modified config file, and + your new OS user will not be visible. + + + The solution chosen for the gnome-ostree + operating system is to create /lib/passwd, + and to include a NSS module nss-altfiles + which instructs glibc to read from it. Then, the build system places + all system users there, freeing up /etc/passwd + to be purely a database of local users. + + + Adapting existing package managers