TL;DR In short, why does trying to mount a device in Dolphin request my root password when I've set this device to be mountable by a user in the fstab? The fstab entry reads as follows: UUID=b6b754d1-243c-45f4-99f1-ff89c43a4fee /mnt/backup1 ext4 user,noauto,acl,user_xattr,nofail 0 0 I tried, as root, adjusting the permissions of the folder /backup1 to belong to the user, but no joy. I wanted to use a spare HD for backups, and thought I'd try 'Kup' for doing so (http://kde-apps.org/content/show.php/Kup+Backup+System?content=147465). I slotted the HD into my laptop's modular bay and clicked on its icon that appears in Dolphin, entering the root password even though I don't see why I should have to. Then, having set up a versioned backup with /mnt/backup1 as a filesystem destination path, the Kup system tray icon forever says 'Backup destination unavailable'. I thought of looking at KDE's policies settings, but in the Control Center the two policy / actions modules that I always used to have in previous installations of openSUSE are no longer there. (My only attempts to change anything in there previously were fruitless anyway because it just ignored every policy I implemented), but regardless, I'm not sure why it's disappeared entirely. Peter openSUSE 13.1 64-bit, KDE 4.11 More info: I have a Dell laptop with a modular bay normally occupied by a DVD drive, but I bought a hard drive caddy to interchange in this bay, into which I put my old SATA HDD. I also have a docking station with such a modular bay. An oddity there is that although when sticking the DVD drive in it is accessible, if I swap in the HD it doesn't get automatically recognised on the desktop (KDE). This could be because the docking station is much older than the laptop, so maybe the SATA connection in there isn't hot swappable, but it's not really important so long as the bay on the laptop works properly. Could it be that this lack of mount flexibility is a limitation of a SATA connection? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-05-30 02:45, Peter wrote:
TL;DR In short, why does trying to mount a device in Dolphin request my root password when I've set this device to be mountable by a user in the fstab? The fstab entry reads as follows: UUID=b6b754d1-243c-45f4-99f1-ff89c43a4fee /mnt/backup1 ext4 user,noauto,acl,user_xattr,nofail 0 0
I tried, as root, adjusting the permissions of the folder /backup1 to belong to the user, but no joy.
Try the "/dev/disk/by-uuid/b6b7..." syntax instead. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 30/05/14 13:49, Carlos E. R. wrote:
Try the "/dev/disk/by-uuid/b6b7..." syntax instead.
I just tried changing that line in fstab. No difference. Did a reboot just to be sure. Same issue. Root password always required. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-05-30 14:39, Peter wrote:
On 30/05/14 13:49, Carlos E. R. wrote:
Try the "/dev/disk/by-uuid/b6b7..." syntax instead.
I just tried changing that line in fstab. No difference. Did a reboot just to be sure. Same issue. Root password always required.
Try By-label... The alternative, is creating an icon to click on it, that issues the manual mount command, which does work as user. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Good Morning, sorry about my delay to answer Some time ago that happend to me with one ntfs partition that I had in my hard disk. My recommendations are, is you are in desktop environment, open Actios Policy Dialog in alt+F2 searcher, once in that windows, open folder org.freedesktop and then in the next in tree search for folder The udisks Project, inside you can find the configuration policy for all disks devices, example: Mount a filesystem, Open a device. You must select an option that you want to change and then in the right side of the windows are implicit authorizations, only change Any from ¨... Authentication¨ to Yes, and the same way the other two combos. sorry about my English On Friday, May 30, 2014 02:42:47 PM Carlos E. R. wrote:
On 2014-05-30 14:39, Peter wrote:
On 30/05/14 13:49, Carlos E. R. wrote:
Try the "/dev/disk/by-uuid/b6b7..." syntax instead.
I just tried changing that line in fstab. No difference. Did a reboot just to be sure. Same issue. Root password always required.
Try By-label...
The alternative, is creating an icon to click on it, that issues the manual mount command, which does work as user. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 30/05/14 15:51, Luis Carlos wrote:
Good Morning, sorry about my delay to answer Some time ago that happend to me with one ntfs partition that I had in my hard disk. My recommendations are, is you are in desktop environment, open Actios Policy Dialog in alt+F2 searcher, once in that windows, open folder org.freedesktop and then in the next in tree search for folder The udisks Project, inside you can find the configuration policy for all disks devices, example: Mount a filesystem, Open a device. You must select an option that you want to change and then in the right side of the windows are implicit authorizations, only change Any from ¨... Authentication¨ to Yes, and the same way the other two combos.
That's the weird thing. I don't have that Actions Policy dialog available, even from Krunner. I used to have it in previous installs up to 12.3. There is 'Device Actions', but that's not the same thing. I also went into Removable Devices in KDE System Settings, and checked Enable Auto Mounting of Removable Media, unticked the next three items, and checked the relevant device in the column Automount on Attach. Still nothing. Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Only one thing more I recommend to you, please look for the actualization of SLES-security book in the PolicyKit topic, how often you can modify policy files directy doesn't matter how desktop environment you use: /etc/polkit-default-privs.local /etc/polkit-default-privs.standard /etc/polkit-default-privs.restrictive Greetings On Friday, May 30, 2014 05:38:54 PM Peter wrote:
On 30/05/14 15:51, Luis Carlos wrote:
Good Morning, sorry about my delay to answer Some time ago that happend to me with one ntfs partition that I had in my hard disk. My recommendations are, is you are in desktop environment, open Actios Policy Dialog in alt+F2 searcher, once in that windows, open folder org.freedesktop and then in the next in tree search for folder The udisks Project, inside you can find the configuration policy for all disks devices, example: Mount a filesystem, Open a device. You must select an option that you want to change and then in the right side of the windows are implicit authorizations, only change Any from ¨... Authentication¨ to Yes, and the same way the other two combos.
That's the weird thing. I don't have that Actions Policy dialog available, even from Krunner. I used to have it in previous installs up to 12.3. There is 'Device Actions', but that's not the same thing. I also went into Removable Devices in KDE System Settings, and checked Enable Auto Mounting of Removable Media, unticked the next three items, and checked the relevant device in the column Automount on Attach. Still nothing.
Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 30/05/14 14:42, Carlos E. R. wrote:
On 2014-05-30 14:39, Peter wrote:
On 30/05/14 13:49, Carlos E. R. wrote:
Try the "/dev/disk/by-uuid/b6b7..." syntax instead.
I just tried changing that line in fstab. No difference. Did a reboot just to be sure. Same issue. Root password always required.
Try By-label...
The alternative, is creating an icon to click on it, that issues the manual mount command, which does work as user.
I tried mounting by volume label but same result, i.e. root password required. When you say create an icon, does this have to be somewhere in particular, e.g. in Dolphin's Places or on the desktop? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-05-30 17:40, Peter wrote:
On 30/05/14 14:42, Carlos E. R. wrote:
I tried mounting by volume label but same result, i.e. root password required. When you say create an icon, does this have to be somewhere in particular, e.g. in Dolphin's Places or on the desktop?
Well, I do not use the KDE desktop, so I'm not familiar enough with the procedure so as to describe in detail. But in any desktop you can create icons, or however they are named, to launch custom programs. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 30/05/14 17:44, Carlos E. R. wrote:
Well, I do not use the KDE desktop, so I'm not familiar enough with the procedure so as to describe in detail.
But in any desktop you can create icons, or however they are named, to launch custom programs.
Yep, finally that did it, thanks. How ridiculous. Just a simple link to the device created in Dolphin, and clicked in Dolphin, mounts it. But clicking the default link in Dolphin, doesn't. After that I got Kup to recognise the backup destination and it started going about its thing. What I still don't understand is what happened to the policy kit / actions settings that used to be part of KDE System Settings. I had a look in the repos and don't see anything obviously related to it that isn't installed. Doesn't matter anyway, since like I say, it never worked. Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Fri, 30 May 2014 02:45:06 +0200 Peter <gumb@linuxmail.org> пишет:
TL;DR In short, why does trying to mount a device in Dolphin request my root password when I've set this device to be mountable by a user in the fstab? The fstab entry reads as follows: UUID=b6b754d1-243c-45f4-99f1-ff89c43a4fee /mnt/backup1 ext4 user,noauto,acl,user_xattr,nofail 0 0
My best guess is that Dolphin is using API that contacts udisks to perform actual mount and udisks has own authorization framework, so "user" becomes irrelevant here. Now udisks treats every filesystem from /etc/fstab as system (privileged) and requires authentication. Your options (in addition to creating simple action that calls mount directly as already suggested) are - generally permit yourself system mount (action org.freedesktop.udisks2.filesystem-mount-system). - write custom polkit rule that permits you mounting of specific device. udisks passes various information to polkit when requesting authorization; this information includes device name, UUID, label and more. They are documented here: http://udisks.freedesktop.org/docs/latest/udisks-polkit-actions.html Unfortunately, it requires you to learn programming ... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrey Borzenkov wrote:
В Fri, 30 May 2014 02:45:06 +0200 Peter <gumb@linuxmail.org> пишет:
TL;DR In short, why does trying to mount a device in Dolphin request my root password when I've set this device to be mountable by a user in the fstab? The fstab entry reads as follows: UUID=b6b754d1-243c-45f4-99f1-ff89c43a4fee /mnt/backup1 ext4 user,noauto,acl,user_xattr,nofail 0 0
My best guess is that Dolphin is using API that contacts udisks to perform actual mount and udisks has own authorization framework, so "user" becomes irrelevant here.
Sounds like a bug to me.
Now udisks treats every filesystem from /etc/fstab as system (privileged) and requires authentication.
Sounds like a bug to me. -- Per Jessen, Zürich (13.8°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Andrey Borzenkov
-
Carlos E. R.
-
Luis Carlos
-
Per Jessen
-
Peter