I have problem with mounting our network drives using cifs in lx-4.2 and I got “Unable to apply new capability set” error. Searching the web I found similar issue in Pclinux forum:
It seems that problem is related to incompatibility of cifs-utils and lib64cap-ng0 versions and according to that thread upgrading cifs-utils will solve the issue. May I ask to upgrade cifs-utils for Rock channel? Do you know another workaround? Accessing network drives is vital for my work and I don’t want to change my distro as I like OM so much.
It seems to have updated OK you will find it in the testing repo which you will have to enable with the ‘software repository chooser’ tool (enable testing for the main repo) It may take a which to prpogate to the mirrors though. If you want it really quick you can get it here:- http://abf-downloads.openmandriva.org/4.2/repository/x86_64/main/testing/cifs-utils-6.14-1-omv4002.x86_64.rpm
Please let me know if it works or whether there are any issues.
By upgrading cifs-utils I am able to mount network drives manually using “sudo mount -a” command. But they can’t be mounted at boot using fstab entry. systemd complains about missing dependency and I don’t know what dependency needed. Also mounting drives is not possible graphically using dolphin. here is the error:
“An error occurred while accessing ‘/home/hosein/y’, the system responded: This program is not installed setuid root - “user” CIFS mounts not supported”
@travis-82 Please tell how did you update cifs-utils.
Did you download the rpm file or you enabled testing repo and update it?
At this moment cifs-utils and deps should be moved into /main/updates/ repo.
Just in case, I’d suggest to:
- open console and run sudo dnf clean all ; dnf clean all ; dnf repolist sudo dnf upgrade cifs-utils
or sudo dnf reinstall cifs-utils if you get any complaint that it’s already installed
(please copy/paste the full console output here. Please post your code as code)
- try again making your test
(please again copy/paste the full console output here)
I upgraded cifs-utils using update repo. Same thing happened: systemd didn’t mount network drives during system boot. Here is the output:
sudo dnf clean all ; dnf clean all ; dnf repolist
[sudo] password for hosein:
53 files removed
0 files removed
repo id repo name
rock-updates-x86_64 OpenMandriva Rock - x86_64 - Updates
rock-updates-x86_64-non-free OpenMandriva Rock - Non-free - x86_64 - Updates
rock-updates-x86_64-restricted OpenMandriva Rock - Restricted - x86_64 - Updates
rock-updates-x86_64-unsupported OpenMandriva Rock - Unsupported - x86_64 - Updates
rock-x86_64 OpenMandriva Rock - x86_64
rock-x86_64-non-free OpenMandriva Rock - Non-free - x86_64
rock-x86_64-restricted OpenMandriva Rock - Restricted - x86_64
rock-x86_64-unsupported OpenMandriva Rock - Unsupported - x86_64
[hosein@hosein-systemproductname ~]$ sudo dnf reinstall cifs-utils
OpenMandriva Rock - x86_64 184 kB/s | 35 MB 03:12
OpenMandriva Rock - x86_64 - Updates 74 kB/s | 1.8 MB 00:25
OpenMandriva Rock - Unsupported - x86_64 112 kB/s | 8.9 MB 01:21
OpenMandriva Rock - Unsupported - x86_64 - 16 kB/s | 50 kB 00:03
OpenMandriva Rock - Restricted - x86_64 40 kB/s | 136 kB 00:03
OpenMandriva Rock - Restricted - x86_64 - U 4.2 kB/s | 9.1 kB 00:02
OpenMandriva Rock - Non-free - x86_64 28 kB/s | 90 kB 00:03
OpenMandriva Rock - Non-free - x86_64 - Upd 4.2 kB/s | 9.4 kB 00:02
Last metadata expiration check: 0:00:01 ago on Wed 15 Dec 2021 01:14:15 PM +0330.
Dependencies resolved.
============================================================================
Package Architecture Version Repository Size
============================================================================
Reinstalling:
cifs-utils x86_64 6.14-1 rock-updates-x86_64 215 k
Transaction Summary
============================================================================
Total download size: 215 k
Installed size: 326 k
Is this ok [y/N]: y
Downloading Packages:
cifs-utils-6.14-1-omv4002.x86_64.rpm 230 kB/s | 215 kB 00:00
----------------------------------------------------------------------------
Total 229 kB/s | 215 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Reinstalling : cifs-utils-6.14-1.x86_64 1/2
Cleanup : cifs-utils-6.14-1.x86_64 2/2
Running scriptlet: cifs-utils-6.14-1.x86_64 2/2
Verifying : cifs-utils-6.14-1.x86_64 1/2
Verifying : cifs-utils-6.14-1.x86_64 2/2
Reinstalled:
cifs-utils-6.14-1.x86_64
And here is the output of systemd
systemctl status home-hosein-y.mount
● home-hosein-y.mount - /home/hosein/y
Loaded: loaded (/etc/fstab; generated)
Active: failed (Result: exit-code) since Wed 2021-12-15 12:33:46 +0330>
Where: /home/hosein/y
What: //rifr-dc1/t-box
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Dec 15 12:33:46 hosein-systemproductname systemd[1]: Mounting /home/hosein/>
Dec 15 12:33:46 hosein-systemproductname mount[12411]: mount error: could n>
Dec 15 12:33:46 hosein-systemproductname systemd[1]: home-hosein-y.mount: M>
Dec 15 12:33:46 hosein-systemproductname systemd[1]: home-hosein-y.mount: F>
Dec 15 12:33:46 hosein-systemproductname systemd[1]: Failed to mount /home/>
And again this is the error which I get when I try to mount drives using dolphin
An error occurred while accessing '/home/hosein/y', the system responded: This program is not installed setuid root - "user" CIFS mounts not supported.
Note that I have used same fstab entries for network drives in all of my previous distributions and had not this problem.
So to solve a problem we need to know how to reproduce the problem. As I read this thread that is not mentioned until post 10. I think these are the steps to reproduce:
$ sudo chmod u+s /sbin/mount.cifs
$ mount -a
That works here. Or at least it runs without error. So what do we need to fix?
Edit: It would seem the problem is in the /etc/fstab entries or something with ‘/home/hosein/y’?
So perhaps we need a better description of what the user is trying to do and for @travis-82 to post contents of his /etc/fstab. Also maybe we need to see the permissions for ‘/home/hosein/y’. Honestly I am guessing here.
I did also reboot to be sure that everything in my /etc/fstab is mounted, and they are. I do mount data partitions, including one on a separate hd, but I do not think that is the same as what @travis-82 means by network drives.
"user" CIFS mounts not supported >>> is telling us something. I would guess this is telling us something needs to be done as root or some permission needs changing.
Maybe that is the right thing to do, it is what I would think to do, but OpenMandriva sometimes does things different from other Linux distros.
Note that here sudo mount -a works without problem after booting to Plasma. The problem is that network drives don’t mount during boot process. Here is my fstab entries for network drives:
and set owner and permissions in the individual os with chown and chmod. The /etc/fstab entries are actually created when I install the os with the OM Lx Calamares partition page. I just select the partition from the list and name the mount point and partitioner does the rest.
Edit: You don’t have to use UUID in /etc/fstab you can still use the old /dev/sda9 or /dev/nvme0n1p7 way. But it is to easy to get the UUID with blkid command.