polkit-auth --user username --grant org.freedesktop.hal.storage.mount-fixed --constraint local
diskdrake is a graphical interface that writes /etc/fstab entries.doktor5000 wrote:You have two general choices: Mount them via /etc/fstab, as a particular user,
or make them mountable by users, or whatever you like.
polkit-auth --user username --grant org.freedesktop.hal.storage.mount-fixed --constraint local
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-fixed">
<match user="username">
<return result="yes"/>
</match>
</match>
</config>
<match action="org.freedesktop.hal.storage.mount-fixed">
<match user="username">
<return result="yes"/>
</match>
</match>
[Local Authentication]
Identity=unix-user:user-name
Action=org.freedesktop.udisks.filesystem-mount-system-internal
ResultActive=yes
Action=org.freedesktop.udisks.filesystem-mount-system-internal;org.kde.ksysguard.processlisthelper.sendsignal
Well, Ahmads method is working here under KDE.
Maybe you need to logout and login under GNOME before changes take effect?
@ahmad: Do you know where to get a complete complete list of those udisks actions,
like with polkit-auth --show-obtainable?
doktor5000 wrote:I guess this can be marked [solved].
dexter11 wrote:Thanks for everybody who tried to help.
[...]
But meanwhile I did create mount points and they just work.
Then i tried the pkla file method Ahmad wrote, just out of curiosity[...]
rpm -V policykit
# rpm -V policykit
S.5....T. c /etc/PolicyKit/PolicyKit.conf
.......T. /var/lib/misc/PolicyKit.reload
ls -la /etc/polkit-1/localauthority/50-local.d/
# ls -la /etc/polkit-1/localauthority/50-local.d/
összesen 4
drwxr-xr-x 2 root root 104 aug 2 22:27 ./
drwx------ 7 root root 200 máj 31 05:44 ../
-rw-r--r-- 1 root root 129 aug 2 22:27 90-csaba-local-authentication.pkla
Return to The magician suggests...
Users browsing this forum: No registered users and 1 guest