Bug 1263182

Summary: Administrator able to rename directory even as it has no access to the directory
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vivek Das <vdas>
Component: sambaAssignee: rhs-smb <rhs-smb>
Status: CLOSED NOTABUG QA Contact: storage-qa-internal <storage-qa-internal>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: nlevinki
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-15 13:47:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vivek Das 2015-09-15 09:36:29 UTC
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:

Comment 2 Vivek Das 2015-09-15 13:46:38 UTC
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.