This program is not installed setuid root - "user" CIFS mounts not supported

Hello,
I’ve been having this problem for a few weeks now. Everything worked perfectly before and my method has always been the same for years and on several distributions. For me the SUID bit represents a security problem but I’m not an expert. I’d like to understand what change has been made in Fedora workstation 39 that now prevents my network drives from being mounted via the fstab file.Everything work perfect when i do a mount - a with the root account …

My credentials file stored in /root :
-rw-------. 1 root root 63 1 avril 16:26 .smbcred
my fstab :
//192.168.0.3/ISO /media/nas-iso cifs credentials=/root/.smbcred,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0

fstab is turned into systemd-mount units automatically and as root the mounts are performed.
So setuid is not required.

Look for information in the journal for the mounts.
You can find the mount units with systemctl | grep mount and find the status of a .mount unit with systemctl status home.mount (for example).
Or look at all mounts with journalctl -b 0 -g mount.

Hello,
Thank you for taking the time to reply.
In the meantime, I modified my fstab to see if I had the same problem with NFS. It’s exactly the same.
Attached is the screenshot with a track, “Network is unreachable”.
However, I have the _netdev option in the fstab to wait for the network to be available before attempting to mount.

192.168.0.3:/volume1/ISO /media/nfs-iso nfs4 _netdev,intr 0 0
192.168.0.3:/volume1/Backup /media/nfs-backup nfs4 _netdev,intr 0 0
192.168.0.3:/volume1/video /media/nfs-video nfs4 _netdev,intr 0 0
192.168.0.3:/volume1/Main /media/nfs-main nfs4 _netdev,intr 0 0
#//192.168.0.3/Backup /media/nas-backup cifs credentials=/root/.smbcred,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0
#//192.168.0.3/video /media/nas-video cifs credentials=/root/.smbcred,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0
#//192.168.0.3/Main /media/nas-main cifs credentials=/root/.smbcred,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0

Please replace the picture of text with the text using the preformed text button </>.

1 Like
avril 10 07:53:15 framework audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-remount-fs comm="systemd" exe="/usr/lib/systemd/systemd">
avril 10 07:53:16 framework systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
avril 10 07:53:16 framework systemd[1]: Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
avril 10 07:53:16 framework systemd[1]: var-lib-machines.mount - Virtual Machine and Container Storage (Compatibility) was skipped because of an unmet condition check (ConditionPathExists=/var/lib/machi>
avril 10 07:53:16 framework systemd[1]: Mounting home.mount - /home...
avril 10 07:53:16 framework systemd[1]: Mounted home.mount - /home.
avril 10 07:53:16 framework systemd[1]: Mounting tmp.mount - Temporary Directory /tmp...
avril 10 07:53:16 framework systemd[1]: Mounted tmp.mount - Temporary Directory /tmp.
avril 10 07:53:16 framework systemd[1]: Mounting boot.mount - /boot...
avril 10 07:53:16 framework kernel: EXT4-fs (nvme0n1p2): mounted filesystem 76edab28-bb29-46b0-a0b4-029f968b4dda r/w with ordered data mode. Quota mode: none.
avril 10 07:53:16 framework systemd[1]: Mounted boot.mount - /boot.
avril 10 07:53:17 framework systemd[1]: Mounting boot-efi.mount - /boot/efi...
avril 10 07:53:17 framework systemd[1]: Mounted boot-efi.mount - /boot/efi.
avril 10 07:53:17 framework systemd[1]: proc-sys-fs-binfmt_misc.automount: Got automount request for /proc/sys/fs/binfmt_misc, triggered by 979 (systemd-binfmt)
avril 10 07:53:17 framework systemd[1]: Mounting proc-sys-fs-binfmt_misc.mount - Arbitrary Executable File Formats File System...
avril 10 07:53:17 framework systemd[1]: Mounted proc-sys-fs-binfmt_misc.mount - Arbitrary Executable File Formats File System.
avril 10 07:53:17 framework systemd[1]: Mounting var-lib-nfs-rpc_pipefs.mount - RPC Pipe File System...
avril 10 07:53:17 framework systemd[1]: systemd-machine-id-commit.service - Commit a transient machine-id on disk was skipped because of an unmet condition check (ConditionPathIsMountPoint=/etc/machine->
avril 10 07:53:17 framework systemd[1]: Mounted var-lib-nfs-rpc_pipefs.mount - RPC Pipe File System.
avril 10 07:53:17 framework systemd[1]: Mounting media-nfs\x2dbackup.mount - /media/nfs-backup...
avril 10 07:53:17 framework systemd[1]: Mounting media-nfs\x2diso.mount - /media/nfs-iso...
avril 10 07:53:17 framework systemd[1]: Mounting media-nfs\x2dmain.mount - /media/nfs-main...
avril 10 07:53:17 framework systemd[1]: Mounting media-nfs\x2dvideo.mount - /media/nfs-video...
avril 10 07:53:18 framework mount[1245]: mount.nfs4: Network is unreachable for 192.168.0.3:/volume1/ISO on /media/nfs-iso
avril 10 07:53:18 framework mount[1257]: mount.nfs4: Network is unreachable for 192.168.0.3:/volume1/video on /media/nfs-video
avril 10 07:53:18 framework mount[1246]: mount.nfs4: Network is unreachable for 192.168.0.3:/volume1/Backup on /media/nfs-backup
avril 10 07:53:18 framework mount[1249]: mount.nfs4: Network is unreachable for 192.168.0.3:/volume1/Main on /media/nfs-main
avril 10 07:53:18 framework systemd[1]: media-nfs\x2dbackup.mount: Mount process exited, code=exited, status=32/n/a
avril 10 07:53:18 framework systemd[1]: media-nfs\x2dbackup.mount: Failed with result 'exit-code'.
avril 10 07:53:18 framework systemd[1]: Failed to mount media-nfs\x2dbackup.mount - /media/nfs-backup.
avril 10 07:53:18 framework systemd[1]: media-nfs\x2diso.mount: Mount process exited, code=exited, status=32/n/a
avril 10 07:53:18 framework systemd[1]: media-nfs\x2diso.mount: Failed with result 'exit-code'.
avril 10 07:53:18 framework systemd[1]: Failed to mount media-nfs\x2diso.mount - /media/nfs-iso.
avril 10 07:53:18 framework systemd[1]: media-nfs\x2dmain.mount: Mount process exited, code=exited, status=32/n/a
avril 10 07:53:18 framework systemd[1]: media-nfs\x2dmain.mount: Failed with result 'exit-code'.
avril 10 07:53:18 framework systemd[1]: Failed to mount media-nfs\x2dmain.mount - /media/nfs-main.
avril 10 07:53:18 framework systemd[1]: media-nfs\x2dvideo.mount: Mount process exited, code=exited, status=32/n/a
avril 10 07:53:18 framework systemd[1]: media-nfs\x2dvideo.mount: Failed with result 'exit-code'.
avril 10 07:53:18 framework systemd[1]: Failed to mount media-nfs\x2dvideo.mount - /media/nfs-video.
avril 10 07:53:37 framework pcloud.desktop[2696]: pCloud Drive is not mounted
avril 10 07:53:46 framework systemd[1]: run-user-42.mount: Deactivated successfully.
avril 10 07:54:51 framework systemd[1]: var-tmp-flatpak\x2dcache\x2dRYOTL2-net.cozic.joplin_desktop\x2d9EDXL2.mount: Deactivated successfully.
avril 10 07:54:55 framework systemd[1]: var-tmp-flatpak\x2dcache\x2dRYOTL2-org.telegram.desktop.webview.Locale\x2d1PK2L2.mount: Deactivated successfully.
avril 10 07:54:57 framework systemd[1]: var-tmp-flatpak\x2dcache\x2dRYOTL2-org.telegram.desktop.webview\x2dDEKSL2.mount: Deactivated successfully.
avril 10 07:55:00 framework systemd[1]: var-tmp-flatpak\x2dcache\x2dRYOTL2-org.telegram.desktop\x2d2Y8AM2.mount: Deactivated successfully.
avril 10 07:55:08 framework packagekitd[1508]: Failed to get cache filename for libmount

jerome@framework:~/qemu$ systemctl list-unit-files | grep mount
proc-sys-fs-binfmt_misc.automount            static          -
-.mount                                      generated       -
boot-efi.mount                               generated       -
boot.mount                                   generated       -
dev-hugepages.mount                          static          -
dev-mqueue.mount                             static          -
home.mount                                   generated       -
media-nfs\x2dbackup.mount                    generated       -
media-nfs\x2diso.mount                       generated       -
media-nfs\x2dmain.mount                      generated       -
media-nfs\x2dvideo.mount                     generated       -
proc-fs-nfsd.mount                           static          -
proc-sys-fs-binfmt_misc.mount                disabled        disabled
run-vmblock\x2dfuse.mount                    disabled        disabled
sys-fs-fuse-connections.mount                static          -
sys-kernel-config.mount                      static          -
sys-kernel-debug.mount                       static          -
sys-kernel-tracing.mount                     static          -
tmp.mount                                    static          -
var-lib-machines.mount                       static          -
var-lib-nfs-rpc_pipefs.mount                 static          -
dracut-mount.service                         static          -
dracut-pre-mount.service                     static          -
nfs-mountd.service                           static          -
systemd-remount-fs.service                   enabled-runtime disabled
umount.target                                static          -
jerome@framework:~/qemu$ systemctl status media-nfs\\x2dbackup.mount 
× media-nfs\x2dbackup.mount - /media/nfs-backup
     Loaded: loaded (/etc/fstab; generated)
     Active: failed (Result: exit-code) since Wed 2024-04-10 07:53:18 CEST; 2h 4min ago
      Where: /media/nfs-backup
       What: 192.168.0.3:/volume1/Backup
       Docs: man:fstab(5)
             man:systemd-fstab-generator(8)
        CPU: 7ms

avril 10 07:53:17 framework systemd[1]: Mounting media-nfs\x2dbackup.mount - /media/nfs-backup...
avril 10 07:53:18 framework mount[1246]: mount.nfs4: Network is unreachable for 192.168.0.3:/volume1/Backup on /media/nfs-backup
avril 10 07:53:18 framework systemd[1]: media-nfs\x2dbackup.mount: Mount process exited, code=exited, status=32/n/a
avril 10 07:53:18 framework systemd[1]: media-nfs\x2dbackup.mount: Failed with result 'exit-code'.
avril 10 07:53:18 framework systemd[1]: Failed to mount media-nfs\x2dbackup.mount - /media/nfs-backup.

Hi, same thing with Fedora 40 :slight_smile:

Someone already got a solution for this? I just found a few search results where it’s told to change the permissions of a few /bin/ files and i hope that this isn’t actually a thing :smiley:

Nevermind, i forgot to add the name of the shared folder, output of dmesg showed me the right direction so i checked the name of the share once more in fstab

Any ideas ? when i do a sudo mount -a everything work fine. i have to do this everytime i reboot my computer… Regards

Share output of lsblk -f and contents of /etc/fstab with us please.

jerome@framework:~$ lsblk -f
NAME FSTYPE FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
zram0
                                                                             [SWAP]
nvme0n1
│                                                                            
├─nvme0n1p1
│    vfat   FAT32        F8F8-1C20                             579,8M     3% /boot/efi
├─nvme0n1p2
│    ext4   1.0          76edab28-bb29-46b0-a0b4-029f968b4dda    560M    36% /boot
└─nvme0n1p3
     btrfs        fedora b8e51a56-1b98-4190-8b75-36093df0ac58    784G    15% /home
                                                                             /
jerome@framework:~$ cat /etc/fstab 

#
# /etc/fstab Created by anaconda on Sat Dec 31 19:12:21 2022
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=b8e51a56-1b98-4190-8b75-36093df0ac58 /                       btrfs   subvol=root,compress=zstd:1 0 0
UUID=76edab28-bb29-46b0-a0b4-029f968b4dda /boot                   ext4    defaults        1 2
UUID=F8F8-1C20          /boot/efi               vfat    umask=0077,shortname=winnt 0 2
UUID=b8e51a56-1b98-4190-8b75-36093df0ac58 /home                   btrfs   subvol=home,compress=zstd:1 0 0

# Mes lecteurs réseaux CIFS :
#
#//192.168.0.3/ISO /media/nas-iso cifs credentials=/root/.smbcred,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0
#//192.168.0.3/Backup /media/nas-backup cifs credentials=/root/.smbcred,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0
#//192.168.0.3/video /media/nas-video cifs credentials=/root/.smbcred,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0
#//192.168.0.3/Main  /media/nas-main cifs credentials=/root/.smbcred,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0

# Mes lecteurs réseaux NFS :
#
192.168.0.3:/volume1/ISO /media/nfs-iso nfs4 _netdev,intr 0 0
192.168.0.3:/volume1/Backup /media/nfs-backup nfs4 _netdev,intr 0 0
192.168.0.3:/volume1/video /media/nfs-video nfs4 _netdev,intr 0 0
192.168.0.3:/volume1/Main /media/nfs-main nfs4 _netdev,intr 0 0

Where does the error message in the title come from?
The log you posted above shows a different problem that looks like a race condition.

I’ve just restarted my PC to send you the logs, everything seems to be working properly now. We can close the subject :wink: