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.

Bug 985067

Summary: setcifsacl should still work when plugin can't be loaded
Product: Red Hat Enterprise Linux 7 Reporter: Jeff Layton <jlayton>
Component: cifs-utilsAssignee: Sachin Prabhu <sprabhu>
Status: CLOSED CURRENTRELEASE QA Contact: Chao Ye <cye>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: abokovoy, eguan, jhrozek, jlayton, qcai, sprabhu, ssorce, steved
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 984087 Environment:
Last Closed: 2014-06-13 12:20:07 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:
Bug Depends On: 984087    
Bug Blocks:    

Description Jeff Layton 2013-07-16 17:19:16 UTC
+++ 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

Comment 1 Jeff Layton 2013-07-17 12:29:29 UTC
Fixed in cifs-utils-6.1-3.el7

Comment 3 Jian Li 2014-01-06 09:45:52 UTC
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

Comment 5 Ludek Smid 2014-06-13 12:20:07 UTC
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.