chaning permissions on slave script