On Thu, Mar 1, 2018 at 3:30 PM, Peter Suetterlin <pit@astro.su.se> wrote:
Roger Oberholtzer wrote:
On Thu, Mar 1, 2018 at 10:57 AM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
Mouunt point permissions are irrelevant after it has been mounted over.
With KDE, the directory that contains the mount point belongs to the user who mounted it. It does not belong to root. Autofs via systemd makes the top level directory belong to root - no matter who mounted it.
Not sure what version you are using. Here (Tumbleweed, Plasma5) I just added an external USB disk with some system partition of a test install. I went to the device notifier and clicked there to mount it.
woodstock:~% cd /run/media/pit/ woodstock:pit% l total 0 drwxr-x---+ 3 root root 60 Mar 1 15:18 ./ drwxr-xr-x 3 root root 60 Mar 1 14:01 ../ drwxr-xr-x 1 root root 156 Feb 8 15:41 8289f59c-2839-45a3-a122-f4393ff9b4fd/
woodstock:pit% cd 8289f59c-2839-45a3-a122-f4393ff9b4fd/
woodstock:8289f59c-2839-45a3-a122-f4393ff9b4fd% touch test touch: cannot touch 'test': Permission denied
(that was a btrfs FS, but I get the same with en ext4)
I'm running Leap 42.3. In my case, /run/media/roger belongs to me (roger), and anything that gets mounted there (like a USB disk) has roger as the owner of the mount point. Nothing belongs to root. Of course, something in the mounted volume may belong to root. But not the top level. KDE is, of course, not the most consistent environment around. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org