@@ -13,7 +13,7 @@ with lib;
1313 # Set up the per-user profile.
1414 mkdir -m 0755 -p "$NIX_USER_PROFILE_DIR"
1515 if [ "$(stat --printf '%u' "$NIX_USER_PROFILE_DIR")" != "$(id -u)" ]; then
16− echo "WARNING: bad ownership on $NIX_USER_PROFILE_DIR, should be $(id -u)" >&2
16+ echo "WARNING: the per-user profile dir $NIX_USER_PROFILE_DIR should belong to user id $(id -u)" >&2
1717 fi
1818
1919 if [ -w "$HOME" ]; then
@@ -35,7 +35,7 @@ with lib;
3535 NIX_USER_GCROOTS_DIR="/nix/var/nix/gcroots/per-user/$USER"
3636 mkdir -m 0755 -p "$NIX_USER_GCROOTS_DIR"
3737 if [ "$(stat --printf '%u' "$NIX_USER_GCROOTS_DIR")" != "$(id -u)" ]; then
38− echo "WARNING: bad ownership on $NIX_USER_GCROOTS_DIR, should be $(id -u)" >&2
38+ echo "WARNING: the per-user gcroots dir $NIX_USER_GCROOTS_DIR should belong to user id $(id -u)" >&2
3939 fi
4040
4141 # Set up a default Nix expression from which to install stuff.