Description of problem: AD user changes the permission of a directory to Read Only for administrator but still administrator is able to rename that directory. Version-Release number of selected component (if applicable): samba-4.1.17-13.el7rhgs.x86_64 How reproducible: Always Steps to Reproduce: 1. Login as an ADMINISTRATOR create a directory in samba share. eg. FOLDER_1 2. Set Read only permissions to FOLDER_1 for ADIMINISTRATOR. 3. Login as an ADMINISTRATOR 4. Rename the directory FOLDER_1 Actual results: Administrator able to rename the directory. Expected results: Administrator should not be able to rename the directory when it has only read permissions. Additional info:
This is not a bug rather rename is not a file operation thus one can rename the directory given that the parent directory do have a write permission.