Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
+++ This bug was initially created as a clone of Bug #984087 +++
Currently setcifsacl just returns an error if it can't load the plugin. It should instead allow a user to supply a "raw" SID string in that case. getcifsacl will already print them, so it's just a matter of accepting them in reverse.
--- Additional comment from Fedora Update System on 2013-07-15 11:59:34 EDT ---
cifs-utils-6.1-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/cifs-utils-6.1-3.fc19
Verified on rhel7
[root@hp-dl388g8-18 etc]# rpm -q cifs-utils
cifs-utils-6.2-4.el7.x86_64
/etc/cifs-utils/idmap-plugin is moved to unknown place
[root@hp-dl388g8-18 etc]# tree /etc/cifs-utils
/etc/cifs-utils
└── test
└── idmap-plugin -> /etc/alternatives/cifs-idmap-plugin
1 directory, 1 file
When idmap plugin file is moved, {s/g}etcifsacl all work on raw SID.
[root@hp-dl388g8-18 etc]# wbinfo -n root
S-1-5-21-2334666784-1356699577-29969081-1101 SID_USER (1)
[root@hp-dl388g8-18 etc]# getcifsacl /mnt/test/test.txt
WARNING: unable to initialize idmapping plugin: /etc/cifs-utils/idmap-plugin: cannot open shared object file: No such file or directory
REVISION:0x1
CONTROL:0x8004
OWNER:S-1-5-21-2334666784-1356699577-29969081-500
GROUP:S-1-5-21-2334666784-1356699577-29969081-513
ACL:S-1-5-21-116981335-494429682-2371366720-500:ALLOWED/I/FULL
ACL:S-1-5-21-116981335-494429682-2371366720-1102:ALLOWED/I/FULL
ACL:S-1-5-32-544:ALLOWED/I/FULL
ACL:S-1-5-18:ALLOWED/I/FULL
ACL:S-1-5-21-2334666784-1356699577-29969081-1106:ALLOWED/I/FULL
[root@hp-dl388g8-18 etc]# setcifsacl -a "ACL:S-1-5-21-2334666784-1356699577-29969081-1101:ALLOWED/I/FULL" /mnt/test/test.txt
WARNING: unable to initialize idmapping plugin. Only "raw" SID strings will be accepted: /etc/cifs-utils/idmap-plugin: cannot open shared object file: No such file or directory
[root@hp-dl388g8-18 etc]# getcifsacl /mnt/test/test.txt
WARNING: unable to initialize idmapping plugin: /etc/cifs-utils/idmap-plugin: cannot open shared object file: No such file or directory
REVISION:0x1
CONTROL:0x8004
OWNER:S-1-5-21-2334666784-1356699577-29969081-500
GROUP:S-1-5-21-2334666784-1356699577-29969081-513
ACL:S-1-5-21-116981335-494429682-2371366720-500:ALLOWED/I/FULL
ACL:S-1-5-21-116981335-494429682-2371366720-1102:ALLOWED/I/FULL
ACL:S-1-5-32-544:ALLOWED/I/FULL
ACL:S-1-5-18:ALLOWED/I/FULL
ACL:S-1-5-21-2334666784-1356699577-29969081-1106:ALLOWED/I/FULL
ACL:S-1-5-21-2334666784-1356699577-29969081-1101:ALLOWED/I/FULL
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.