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):
Steps to Reproduce:
1) execute smbcacls(1) with "-M OWNER" option.
# smbcacls //SAMBA/share testfile -U "administrator" -M "OWNER:user1"
2) check modifying OWNER name by smbcacls(1).
# smbcacls //SAMBA/share testfile -U "administrator"
OWNER:administrator <--* OWNER is not modified to user1.
The OWNER name is not modified.
The OWNER name is modified to user1.
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
Good test case and patch has been submitted for fix. Should be quick to test.
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.