On 05-07T 1:43, Pedro Salgueiro wrote: > Can a deb package create a user? Packages like gdm do: -- *SNIP* /var/lib/dpkg/info/gdm.postinst *SNIP* -- # creating gdm user if he isn't already there if ! getent passwd gdm >/dev/null; then echo Adding system user: gdm. adduser --system --ingroup gdm --home /var/lib/gdm gdm usermod -c "Gnome Display Manager" gdm usermod -d "/var/lib/gdm" gdm usermod -g "gdm" gdm usermod -s "/bin/false" gdm fi -- *SNIP* *SNIP* -- Though I was a bit confused -- point 10.2 of the policy manual regulates that no package except base-passwd should modify /etc/passwd, /etc/groups, ... Does this only cover modifying directly, or is usage of adduser, etc., disencouraged, too? -towo, puzzled -- The most common form of marriage proposal: "YOU'RE WHAT!?"
Attachment:
pgppSxL6yWMwO.pgp
Description: PGP signature