setcifsacl errors out, package missing idmap-plugin symlink

Bug #1372120 reported by troy engel
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cifs-utils (Debian)
Fix Released
Unknown
cifs-utils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

# lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04

# apt-cache policy cifs-utils
cifs-utils:
  Installed: 2:6.0-1ubuntu2
  Candidate: 2:6.0-1ubuntu2

The cifs-utils package is missing a symlink to the idmap plugin; attempting to run setcifsacl errors out like so:

# setcifsacl -a "ACL:S-1-5-21-762712803-3572108623-4099884218-1003:ALLOWED/I/FULL" /data/test-file

ERROR: unable to initialize idmapping plugin: /etc/cifs-utils/idmap-plugin: cannot open shared object file: No such file or directory

The plugin is available, it's just a symlink needed to fix it even though idmap isn't being used (no winbind):

# mkdir /etc/cifs-utils
# ln -s /usr/lib/x86_64-linux-gnu/cifs-utils/idmapwb.so /etc/cifs-utils/idmap-plugin

# setcifsacl -a "ACL:S-1-5-21-762712803-3572108623-4099884218-1003:ALLOWED/I/FULL" /data/test-file

# getcifsacl /data/test-file
REVISION:0x1
CONTROL:0x8004
OWNER:S-1-5-21-762712803-3572108623-4099884218-1001
GROUP:S-1-5-21-762712803-3572108623-4099884218-513
ACL:S-1-5-21-762712803-3572108623-4099884218-500:ALLOWED/I/FULL
ACL:S-1-5-32-544:ALLOWED/I/FULL
ACL:S-1-5-21-762712803-3572108623-4099884218-1001:ALLOWED/I/FULL
ACL:S-1-5-18:ALLOWED/I/FULL
ACL:S-1-5-21-762712803-3572108623-4099884218-1003:ALLOWED/I/FULL

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=985067

Revision history for this message
troy engel (troyengel) wrote :

Looks like this missing plugin behaviour was fixed in release 6.2 of cifs-utils:

https://wiki.samba.org/index.php/LinuxCIFS_utils

October 4, 2013: Release 6.2

    setcifsacl can now work without a plugin
    systemd-ask-password is found using $PATH now
    cifs.upcall now works with KEYRING: credcaches
    https://lists.samba.org/archive/samba-technical/2013-October/095287.html

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cifs-utils (Ubuntu):
status: New → Confirmed
Changed in cifs-utils (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.