Skip to content

Commit

Permalink
Little change in MANDATORY_RIGHTS
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylicious committed Mar 19, 2024
1 parent cfec9e3 commit 84e5b03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from subprocess import check_call

# MANDATORY_RIGHTS contains commands to ensure correct rights for certain files
MANDATORY_RIGHTS = "chown -R root:root /home/root /etc/auto.network /etc/default/dropbear /etc/dropbear ; chmod 600 /etc/auto.network /etc/dropbear/* /home/root/.ssh/* ; chmod 700 /home/root /home/root/.ssh"
MANDATORY_RIGHTS = "chown -R root:root /home/root /etc/auto.network /etc/default/dropbear /etc/dropbear ; chmod 600 /etc/auto.network /etc/dropbear/*; if [[ -d /home/root/.ssh/ ]]; then chmod 600 /home/root/.ssh/* ; chmod 700 /home/root/.ssh; fi; chmod 700 /home/root"

# BLACKLISTED lists all files/folders that MUST NOT be backed up or restored in order for the image to work properly
BLACKLISTED = ['home/root/.cache', 'etc/passwd', 'etc/shadow', 'etc/group', 'etc/samba/distro', 'etc/samba/smb.conf', 'home/root/FastRestore.log']
Expand Down

0 comments on commit 84e5b03

Please sign in to comment.