You are not logged in.
I am not (yet) an Arch user, I'm just using this forum to
investigage a problem I'm having on Suse, PCLinuxOS,
Kubuntu, and Mint. Arch doesn't have a LiveDVD,or
I would try it to see what happens in Arch without
posting.
I have an entry in /etc/fstab that looks like this:
LABEL=ROOT3 /mnt/ROOT3 ext4 noauto,nouser,ro 1 2
I don't want non-root users to be able to mount or umount
this filesystem, so "nouser" is set. In a (non-root) terminal, if I run
mount /mnt/ROOT3
I get this expected/desired result:
mount: only root can mount LABEL=ROOT3 on /mnt/ROOT3
However, if I (non-root) open the KDE Device Notifier and configure it to
look at all devices (not just removable), and then search for
ROOT3, and then click on the little "belt" icon to the right of ROOT3,
the device notifier mounts the filesystem. This sure seems like
a security bug to me: a non-root user can mount/umount filesystems
that are forbidden in /etc/fstab. I filed a bug report against KDE
and they concluded the problem was in polkit (policy kit), either
a bug or a misconfiguration. I tried to make sense of the polkit
documentation in the Arch Wiki, but it was over my head.
Could some Arch/KDE user try to mount a filesystem that has the
nouser attribute set in /etc/fstab with the device notifier and see
if it succeeds or fails with Arch. If it fails, what can be done to
change/fix the behavior?
xr200
Offline
Here is one line from my /etc/fstab
LABEL=files /run/media/myname/files ntfs-3g permissions 0 0I am not able to unmount (or mount) this internal device as normal user using Dolphin (under Plasma 5) or Nemo.
Furthermore I am not able to mount/unmount other internal devices as normal user which have no entry in /etc/fstab.
Last edited by The Infinity (2015-02-11 23:34:27)
Offline
I think that's because you used Dolphin and not the KDE device notifier.
They don't work the same way.
Try using the device notifier and see what happens.
xr200
Offline
This doesn't work either (mounting and unmounting). I'll get exactly the same dialog to enter my password when using Dolphin. I'm using Plasma 5.
Last edited by The Infinity (2015-02-12 16:23:47)
Offline
You are prompted for the "root" password, correct?
I'm hoping someone running Plasma 4 will try it at well.
Thank you very much for running this test. The behavior
you are experiencing is the way it's supposed to work.
xr200
Offline