Quote:
Originally Posted by WhatStandards
Hi Mariusz,
I know tthis is an old post, but it's still one of the first to stumble upon when googling this issue, so I thought I'd give you a hint:
It's generally not a good idea to edit configs under /usr/share... since they might get overwritten when upgrading packages. Often there is a chance to overwrite the defaults in /etc, your home dir...
To avoid having to reedit the file each time udisks gets updated, you should use the directory "/etc/polkit-1/localauthority.conf.d/". There you can place custom configs for polkit, that will be examined after the default config files have been evaluated.
To make it short:
Create a file like "/etc/polkit-1/localauthority.conf.d/99-my-actions.conf" and simply paste this into it:
|
Thank you for your input. Unfortunately, doing what you are suggesting would prevent mounting any partition:
Polkit instead of prompting for password would exit with a cryptic error message.
Correct solutions are presented in the updated tutorial (see the first post).