Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / config / chroot_local-hooks / 99-permissions
blobfbf0c2237c52be507d2b922159eb3b7815a466a9
1 #!/bin/sh
3 set -e
5 echo "Setting correct file permissions"
7 chmod 00440 /etc/sudoers.d/*
9 # NetworkManager requires these permissions
10 chmod 00600 /etc/NetworkManager/system-connections/*
12 # For persistent Tor settings via Tor Launcher, the debian-tor user
13 # must be able to write into `/etc/tor`.
14 chown -R debian-tor:debian-tor /etc/tor
16 # Otherwise, such files may be copied to /home/amnesia, and in turn
17 # to the persistent volume, with unsafe permissions. That's no big deal
18 # in /home/amnesia (that is itself not world-readable), *but* the root
19 # of the persistent volume has to be world-readable.
20 chmod -R go= /etc/skel/* /etc/skel/.[a-z]*