Skip to content

Commit

Permalink
fix permissions for timemachine parent folder
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvAmBass committed Jun 11, 2021
1 parent 1e13c49 commit befc254
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/samba_create_timemachine_user_dir.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

chown nobody:nogroup "$1"
chmod 777 "$1"

if [ ! -e "$1/$2" ]; then
mkdir "$1/$2"
chown $2:$2 "$1/$2"
chmod -R 700 "$1/$2"
fi
exit 0
exit 0

0 comments on commit befc254

Please sign in to comment.