Change permissions of sync file