Commit 1f0d3e25 authored by intrigeri's avatar intrigeri
Browse files

Ensure UIDs and GIDs stability (refs: #15291)

Removing monkeysphere shifted many UIDs and GIDs, let's reset them
back to what they were in Tails 3.13.1.
parent febedc4f
......@@ -69,11 +69,19 @@ Change_gid () {
fi
}
### Ensure GIDs are stable accross releases
### Ensure UIDs and GIDs are stable accross releases
# ... otherwise, things such as tor@service are broken
# after applying an automatic upgrade (#15695, #15424, #13426, #15407)
# Temporarily give these groups a GID that's out of the way, to avoid collisions
# Temporarily give these users and groups a UID/GID that's out of the way,
# to avoid collisions
Change_uid debian-tor 1070
Change_uid speech-dispatcher 1080
Change_uid colord 1090
Change_uid saned 1100
Change_uid pulse 1110
Change_uid hplip 1120
Change_uid Debian-gdm 1130
Change_gid messagebus 1050
Change_gid ssh 1090
Change_gid memlockd 1100
......@@ -89,7 +97,14 @@ Change_gid pulse-access 1200
Change_gid Debian-gdm 1210
Change_gid kvm 1500
# Finally, give these groups the desired GID
# Finally, give these users and groups the desired UID/GID
Change_uid debian-tor 107
Change_uid speech-dispatcher 108
Change_uid colord 109
Change_uid saned 110
Change_uid pulse 111
Change_uid hplip 112
Change_uid Debian-gdm 113
Change_gid messagebus 105
Change_gid ssh 109
Change_gid memlockd 110
......
......@@ -9,4 +9,5 @@ set -e
echo "Creating the clearnet user"
adduser --system --quiet --group clearnet
addgroup --system --quiet --gid 123 clearnet
adduser --system --quiet --uid 114 --gid 123 clearnet
......@@ -9,4 +9,5 @@ set -e
echo "Creating the htp user"
adduser --system --quiet --group --no-create-home htp
addgroup --system --quiet --gid 124 htp
adduser --system --quiet --uid 116 --gid 124 --no-create-home htp
......@@ -10,4 +10,5 @@ set -e
echo "Creating the tails-iuk-get-target-file user"
adduser --system --quiet --group --no-create-home tails-iuk-get-target-file
addgroup --system --quiet --gid 125 tails-iuk-get-target-file
adduser --system --quiet --uid 117 --gid 125 --no-create-home tails-iuk-get-target-file
......@@ -10,4 +10,5 @@ set -e
echo "Creating the tails-upgrade-frontend user"
adduser --system --quiet --group --no-create-home tails-upgrade-frontend
addgroup --system --quiet --gid 126 tails-upgrade-frontend
adduser --system --quiet --uid 118 --gid 126 --no-create-home tails-upgrade-frontend
......@@ -9,5 +9,6 @@ set -e
echo "creating the tor-launcher user"
adduser --system --quiet --group tor-launcher
addgroup --system --quiet --gid 127 tor-launcher
adduser --system --quiet --uid 119 --gid 127 tor-launcher
adduser tor-launcher debian-tor
......@@ -9,5 +9,6 @@ set -e
echo "Creating the tails-install-iuk user"
adduser --system --quiet --group --no-create-home tails-install-iuk
addgroup --system --quiet --gid 128 tails-install-iuk
adduser --system --quiet --uid 120 --gid 128 --no-create-home tails-install-iuk
adduser tails-install-iuk tails-iuk-get-target-file
Supports Markdown
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