Red Hat Bugzilla – Bug 187213
smbcacls doesn't change ownership/group
Last modified: 2014-09-22 08:03:17 EDT
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.
Created attachment 126964 [details] Patch fixing the setup of a security descriptor including group/owner SIDs
Created attachment 126965 [details] same patch but for [RHEL3]
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.
Good test case and patch has been submitted for fix. Should be quick to test. QE_ACK+
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