99-permissions 645 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. set -e
  3. echo "Setting correct file permissions"
  4. chmod 00440 /etc/sudoers.d/*
  5. # NetworkManager requires these permissions
  6. chmod 00600 /etc/NetworkManager/system-connections/*
  7. # For persistent Tor settings via Tor Launcher, the debian-tor user
  8. # must be able to write into `/etc/tor`.
  9. chown -R debian-tor:debian-tor /etc/tor
  10. # Otherwise, such files may be copied to /home/amnesia, and in turn
  11. # to the persistent volume, with unsafe permissions. That's no big deal
  12. # in /home/amnesia (that is itself not world-readable), *but* the root
  13. # of the persistent volume has to be world-readable.
  14. chmod -R go= /etc/skel/* /etc/skel/.[a-z]*