summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/05-adduser_tails-persistence-setup
blob: ab9bb07c9e892006f7604bc4d4ee8ced13254971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

# Create the tails-persistence-setup user.
#
# The tails-persistence-setup program may be run as this user.
# This allows us to give it special privileges (e.g. access via udisk
# to internal disks and to the boot medium) that we don't want to give
# to the desktop user.

echo "Creating the tails-persistence-setup user"

addgroup --system --gid 122 tails-persistence-setup
adduser --system --uid 115 --gid 122 --no-create-home tails-persistence-setup