Description of problem:
I try to mount a cifs directory :
mount.cifs //Iomega/NetHDD /mnt/Iomega
I get the following error message :
Unable to apply new capability set.
I had a look on Internet and the issue seems to come from the
lib(64)cap-ng package starting from version 0.8.1-1. (see : https://www.reddit.com/r/archlinux/comments/kc6zny/sambacifs_mount_is_broken_at_the_moment)
Version 0.8.2 is used on Mageia8.
Version-Release number of selected component (if applicable):
package : lib64cap-ng0-0.8.2-1.mga8
mount.cifs <Cifs dir> <Mount Point>
Could you try to correct this bug ? Mageia7 do not have this issue.
Thanks pointing this.
I don't have samba shares on this computer.
Asking QA and MLO IRC if someone have samba shares.
FWIW - I tested mount.cifs on mga8 in my environment earlier today and didn't have a problem, but I was testing against a CentOS 7 server rather than an appliance such as in the description. My mga8 test laptop has the release versions of both lib64cap-ng0 and cifs-utils (the latter of which was mentioned in the reddit thread).
I do recall a kernel change made awhile back that seemed to inordinately affect appliance type devices as I recall. Maybe it's worth a look.
I some cases where the host does not support anything greater, you have to force smbv1.
The package cifs-utils was missing. For some reason, after the update from Mageia7 to Mageia8, it was no more installed. This is what I think as the mounts were working fine before the update.
Now mount.cifs and cifs mounts using autofs are working fine.
Thank you for your help.
The bug is that cifs-utils got removed during upgrade.
Do you have a log from the upgrade?
What method did you use to upgrade?
The cifs mounts (and automounts) do not work on Mageia 8. =>
Upgrade bug: cifs-utils got removedResolution:
If it was necessary for Mageia7 to perform cifs mounts, so, yes, I think it has been removed.
Here are the commands I've run for the upgrade :
systemctl isolate multi-user.target
urpmi --auto-update --auto --force
urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.8.$ARCH.list'
urpmi --auto-update --auto --force
I've attached the upgrade log file.
Created attachment 12479 [details]
Mageia7 to Mageia8 upgrade log file.
Thanks providing log file.
I don't find any "cifs*" package involved in the upgrade.
The above mentioned cifs-utils was not installed in Mageia 7.
This is *NOT* an upgrade issue.
I wonder why now it is necessary. better packaging? Should be recommended by samba?
$ urpmq -i cifs-utils
Name : cifs-utils
Version : 6.11
Release : 2.mga8
Group : Networking/Other
Size : 397693 Architecture: x86_64
Source RPM : cifs-utils-6.11-2.mga8.src.rpm
URL : http://www.samba.org/linux-cifs/cifs-utils/
Summary : Tools for Managing Linux CIFS Client Filesystems
Tools for Managing Linux CIFS Client Filesystems.
$ urpmq --whatrequires cifs-utils
$ urpmq --whatrequires-recursive cifs-utils
$ rpm -qa | grep cifs
$ rpm -qa | grep samba
The in-kernel CIFS filesystem is generally the preferred method for mounting SMB/CIFS shares on Linux.
The in-kernel CIFS filesystem relies on a set of user-space tools. That package of tools is called cifs-utils. Although not really part of Samba proper, these tools were originally part of the Samba package. For several reasons, shipping these tools as part of Samba was problematic and it was deemed better to split them off into their own package.
cifs-utils should be installed by default if samba-client s also installed.
As there is no maintainer for this package I added the committers in CC.
(Please set the status to 'assigned' if you are working on it)
Upgrade bug: cifs-utils got removed =>
cifs-utils is userspace cifs vfs from Kernel, should be installed by default with samba-client to help user experienceWhiteboard:
Comment 3+ =>