added additional functions to set and modify the access rights for files and directories