From: Theodore Ts'o Date: Tue, 26 Feb 2008 17:11:47 +0000 (-0500) Subject: debian: Pass 100 to UID_MIN and GID_MIN, not 1 X-Git-Tag: v1.40.7~28 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=949bc9aa87f9903f3022e2da7d2ee1c3d267d82c;p=tools%2Fe2fsprogs.git debian: Pass 100 to UID_MIN and GID_MIN, not 1 According to the policy, UIDs and GIDs in the range 1-100 are reserved to be globally allocated by the base-passwd package. The libuuid1 postinstall script passes in UID_MIN=1 and GID_MIN=1. The useradd and groupadd commands seems to skip UID's between 1 and 100 anyway, but it's confusing, so we should pass in UID_MIN=100 and GID_MIN=100 for clarity and in case useradd and groupadd ever changes their behaviour. Addresses-Debian-Bug: #466929 Signed-off-by: "Theodore Ts'o" --- diff --git a/debian/libuuid1.postinst b/debian/libuuid1.postinst index 50a8618..cd5b093 100644 --- a/debian/libuuid1.postinst +++ b/debian/libuuid1.postinst @@ -1,9 +1,9 @@ #!/bin/sh set -e -groupadd -f -K GID_MIN=1 -K GID_MAX=999 libuuid +groupadd -f -K GID_MIN=100 -K GID_MAX=999 libuuid if ! grep -q libuuid /etc/passwd; then - useradd -d /var/lib/libuuid -K UID_MIN=1 -K UID_MAX=499 -g libuuid libuuid + useradd -d /var/lib/libuuid -K UID_MIN=100 -K UID_MAX=999 -g libuuid libuuid fi mkdir -p /var/lib/libuuid chown libuuid:libuuid /var/lib/libuuid