added functionality to set files permissions task