Commit f3e8edde authored by Tails developers's avatar Tails developers
Browse files

Also free the fixed UID we assign to the t-p-s user.

On Jessie, a bunch of new users are now created when installing packages earlier
in the build process.
parent d9b9e8c5
......@@ -2,12 +2,18 @@
set -e
# Free the fixed GIDs we're using.
# Free the fixed GIDs and UIDs we're using.
echo "Change GIDs"
echo "Change GIDs and UIDs"
TPS_GROUP_STEALER=$(getent group 122 | awk -F ':' '{print $1}')
if [ -n "$TPS_GROUP_STEALER" ]; then
groupmod --gid 150 "$TPS_GROUP_STEALER"
find / -wholename /proc -prune -o \( \! -type l -a -gid 122 -exec chgrp 150 '{}' \; \)
fi
TPS_USER_STEALER=$(getent passwd 115 | awk -F ':' '{print $1}')
if [ -n "$TPS_USER_STEALER" ]; then
usermod --uid 150 "$TPS_USER_STEALER"
find / -wholename /proc -prune -o \( \! -type l -a -gid 115 -exec chgrp 150 '{}' \; \)
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment