From 0e23a175de3687df8232fe118cbe87f04228ff28 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Apr 2014 10:45:06 +0200 Subject: Allocate system uids/gids between 400 and 500 Previously it was between 100 and 500, but this can already collide with the static uids/guid in misc/ids.nix. --- nixos/modules/misc/ids.nix | 8 ++++---- nixos/modules/programs/shadow.nix | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'nixos/modules') diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index 2d9ea1450ff0..d653ac51143a 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -129,10 +129,10 @@ foundationdb = 118; newrelic = 119; starbound = 120; - hydra = 122; - spiped = 123; + hydra = 122; + spiped = 123; - # When adding a uid, make sure it doesn't match an existing gid. + # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399! nixbld = 30000; # start of range of uids nobody = 65534; @@ -237,7 +237,7 @@ hydra = 122; spiped = 123; - # When adding a gid, make sure it doesn't match an existing uid. + # When adding a gid, make sure it doesn't match an existing uid. And don't use gids above 399! users = 100; nixbld = 30000; diff --git a/nixos/modules/programs/shadow.nix b/nixos/modules/programs/shadow.nix index a24350994992..27a18c726a3a 100644 --- a/nixos/modules/programs/shadow.nix +++ b/nixos/modules/programs/shadow.nix @@ -10,12 +10,12 @@ let '' DEFAULT_HOME yes - SYS_UID_MIN 100 + SYS_UID_MIN 400 SYS_UID_MAX 499 UID_MIN 1000 UID_MAX 29999 - SYS_GID_MIN 100 + SYS_GID_MIN 400 SYS_GID_MAX 499 GID_MIN 1000 GID_MAX 29999 -- cgit 1.4.1