Bug 187213

Summary: smbcacls doesn't change ownership/group
Product: Red Hat Enterprise Linux 4 Reporter: Jose Plans <jplans>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jplans, samba-bugs-list
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHEA-2007-0698 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-15 16:14:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 176344, 198868, 222397, 247538    
Attachments:
Description Flags
Patch fixing the setup of a security descriptor including group/owner SIDs
none
same patch but for [RHEL3] none

Description Jose Plans 2006-03-29 09:38:24 UTC
Description of problem:
Using smbcacls(1) command, OWNER can be modified with "-C name" option.
But OWNER cannot be modified with "-M OWNER:name" option.
In the same way, GROUP can be modified with "-G name" option.
But GROUP cannot be modified with "-M GROUP:name" option.


Version-Release number of selected component (if applicable):
RHEL4 U2
samba-3.0.10-1.4E.2

How reproducible:
Always

Steps to Reproduce:
1) execute smbcacls(1) with "-M OWNER" option.

# smbcacls //SAMBA/share testfile -U "administrator" -M "OWNER:user1"
Password:


2) check modifying OWNER name by smbcacls(1).

# smbcacls //SAMBA/share testfile -U "administrator"
Password:
REVISION:1
OWNER:administrator    <--* OWNER is not modified to user1.
GROUP:Domain Users
ACL:administrator:ALLOWED/0/FULL
ACL:Domain Users:ALLOWED/0/R
ACL:\Everyone:ALLOWED/0/R
  
Actual results:
The OWNER name is not modified.

Expected results:
The OWNER name is modified to user1.

Additional info:
This should work as stated on the smbcacls(1) man page.
I'm also attaching patches for both RHEL4 and RHEL3.

Comment 1 Jose Plans 2006-03-29 09:38:25 UTC
Created attachment 126964 [details]
Patch fixing the setup of a security descriptor including group/owner SIDs

Comment 2 Jose Plans 2006-03-29 09:39:31 UTC
Created attachment 126965 [details]
same patch but for [RHEL3]

Comment 3 RHEL Program Management 2006-08-18 16:21:19 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 4 David Lawrence 2006-08-29 14:29:01 UTC
Good test case and patch has been submitted for fix. Should be quick to test.
QE_ACK+

Comment 15 errata-xmlrpc 2007-11-15 16:14:23 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2007-0698.html