Skip to content
Snippets Groups Projects
Commit 337252f2 authored by Bob Mottram's avatar Bob Mottram
Browse files

syncthing user directory permissions

parent 0c3d0f3c
No related branches found
No related tags found
No related merge requests found
......@@ -275,6 +275,14 @@ function user_devices_changed {
fi
done < /home/$USERNAME/$SYNCTHING_USER_IDS_FILE
fi
# Permissions on user Sync directories
if [ -d /home/$USERNAME/Sync ]; then
chown $USERNAME:$USERNAME /home/$USERNAME /home/$USERNAME/Sync
fi
if [ -d /home/$USERNAME/SyncShared ]; then
chown $USERNAME:$USERNAME /home/$USERNAME /home/$USERNAME/SyncShared
fi
fi
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment