In older KDE versions (I think 4.9, but perhaps it was 4.8) when I clicked on a mountable device icon, for example in Dolphin (but in general everywhere where such icons are offered), the device was mounted immediately without asking me for a root password. Now, this doesn't work anymore. I now get prompted for the root password and the mount happens as root. As a workaround, I now have to mount from the command line which is a hasstle since I prefer using desktop environments instead of the CLI. Here's an fstab entry for a disk where KDE behaves wrongly: /dev/sdb1 /windows/D ntfs-3g relatime,user,exec,norecover,windows_names,noauto 0 0 Note the "user" option, which allows the filesystem to be mounted by users. Reproducible: Always Kernel 3.8.6 NTFS-3G 2013.1.13
KDE is not mounting anything indicated in fstab, we only use fstab to know when cifs/nfs filesystems are mounted, but we NEVER use fstab information to perform any mounting. So this must be an issue down in your distribution, definitively not in kde. Also, for user-mounting we use UDisk1 and UDisk2, maybe that line in fstab is interfering with them, you shouldn't need any fstab line afaik to do user-mounting. Going to close the bug as downstream. Please if you think I'm mistaken feel free to reopen the bug ! Thanks for reporting.
What should downstream provide to not mount the drive/partion as root?
(In reply to comment #2) > What should downstream provide to not mount the drive/partion as root? Could you please explain me what is needed in downstream?
Ping? Can someone explain what KDE needs in order to mount devices with current user rights instead of root?
Hello?
Since no one's telling us why it's our (Gentoo) fault, I'm reopening.
It's been two years now, and still no one from KDE can tell us what it needs. :-/
This bug is reported on libsolid which is the kdelibs4 version of the solid library. It is now in maintenance mode. If you think it should still be fixed in the KDE Frameworks 5 version of solid please move it to or report a bug on frameworks-solid.
Tested with current git version (DolphinAbout Dialog: KDE Frameworks 5.12.0 and 14.12.95), same result as in bug description. If this is an downstream issue please decribe what is needed to make this work without /etc/fstab entry.
The decision about what needs root is done by polkit. Using polkit's defaults, mounting an * Internal hard drives needs root * External hard drives does not need root This is on purpose. See https://wiki.archlinux.org/index.php/Polkit for how to configure polkit. If you want to see more examples just check out /etc/polkit-1/ and /usr/share/polkit-1/ on an Ubuntu installation.
Closing. I don't care anymore.
Polkit will misbehave with /proc mounted with hidepid=2 option. I've been recently been bitten by this, maybe it helps.