Bug 399377

Summary: dolphin incorrectly complains that systemd noauto,x-systemd.automount mounts must be mounted as root
Product: [Applications] dolphin Reporter: akm <alexvkaam>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alex.kuntsch+kde, elvis.angelaccio, frederick888, nate, null
Priority: NOR    
Version First Reported In: 18.08.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description akm 2018-10-04 14:47:25 UTC
SUMMARY

when having a fstab which uses the noauto,x-systemd.automount and trying to open it with Dolphin via network section on the left panel Dolphin throws an error that mounts can only be done by root

STEPS TO REPRODUCE
1. create fstab like this:  192.168.2.200:/volume1/SL       /home/akm/Diskstation/SL      nfs     noauto,rw,exec,x-systemd.automount 0 0 
2. boot into KDE, nfs share is Not Mounted (which is correct)
3. open it by clicking on the left bar in the network section on "volume1/SL on 192.168.2.200"

OBSERVED RESULT

message saying that the mount can only be executed by root

EXPECTED RESULT

open it since systemd will mount it once you access it

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.49.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
going to the folder in Doplhin via /home/akm/Diskstation/SL will show content and after that Dolphin will show it as mounted in the network section on the left pannel
Comment 1 akuntsch 2019-10-05 10:43:34 UTC
Same issue on Arch Linux with version 19.08.1.

By the way, opening the Properties of the network share in Dolphin also mounts it.
Comment 2 Frederick Zhang 2020-04-30 06:59:24 UTC
Can confirm. By the way the error message in my case with Dolphin 20.04.0 is

> An error occurred while accessing '/srv/nfs:/mnt/XXX on NFSHOST', the system responded: mount.nfs: failed to prepare mount: Operation not permitted
Comment 3 akm 2022-09-30 16:03:44 UTC
this seems to have been resolved for me, so if the same of other then will close it
Comment 4 akuntsch 2022-10-05 15:48:28 UTC
(In reply to akm from comment #3)
> this seems to have been resolved for me, so if the same of other then will
> close it

Yep, same for me.
Comment 5 Nate Graham 2022-10-05 18:41:08 UTC
Thanks for checking in on it!