changing permmissions of daemon file