
Code: Select all
session optional pam_ck_connector.soCode: Select all
login_cmd exec /bin/bash -login /usr/share/slim/Xsession %sessionCode: Select all
blackknight ~ # cat /etc/X11/Sessions/enlightenment
#!/bin/bash
exec ck-launch-session dbus-launch /usr/bin/enlightenment_start
Well, you should see /usr/libexec/polkit-gnome-authentication-agent-1 running in `ps`.shallpion wrote:Thank you for the detailed explanation. I am running gnome on ~amd64 and I just did what you suggested step by step. everthing is fine except now I am not able to bring up the root password dialog window when I clicked on the icon of an NTFS partition in nautilus. Only a small window saying "Authentication is required" popped up. I did emerged the agent polkit-gnome. I had no problem in mounting USB devices. Is there any configuration I have to make about polkit-gnome so the authentication dialog can pop up as before when I had hal?
Thank you.
Thank you for your detailed explanations. Yes I think the problem is that polkit-gnome-authentication-agent-1 is not running here. I tried to put it in "Startup Applications" in gnome menu but it still refuses to run automatically after I login through gdm. I have to manually start it or put in somewhere in /etc/X11/xinit.d/... . But I am still curious, is there any reason why the program cannot be autostarted by gnome-autostart?ssuominen wrote: Well, you should see /usr/libexec/polkit-gnome-authentication-agent-1 running in `ps`.
Like this:
$ ps -C polkit-gnome-authentication-agent-1
PID TTY TIME CMD
28377 tty1 00:00:00 polkit-gnome-authentication-agent-1
It's normally autostarted by this file:
/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
And if it's not, then you need to add:
/usr/libexec/polkit-gnome-authentication-agent-1 &
Somewhere in your desktops starting scripts. Propably users of Fluxbox, Openbox, and such will need to do this because they don't support the .desktop autostart files, like GNOME or Xfce does.
Code: Select all
blackknight ~ # cat /etc/hal/fdi/policy/20-ntfs-as-user.fdi
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="ntfs">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.fstype" type="string">ntfs-3g</merge>
<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
<append key="volume.mount.valid_options" type="strlist">locale=</append>
</match>
</match>
</device>
</deviceinfo>
Well, I'm going to throw some ideas here... Maybe it will get you on right track...tbart wrote:@ssuominen:
Is this really the way to go?
My previous hal setup did not ask me for a password with ntfs-3g as I had this policy file in place:
(granted, I don't really see the line that really made the user able to mount with ntfs-3g, but hey, it worked!)Code: Select all
blackknight ~ # cat /etc/hal/fdi/policy/20-ntfs-as-user.fdi <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="volume.fstype" string="ntfs"> <match key="@block.storage_device:storage.hotpluggable" bool="true"> <merge key="volume.fstype" type="string">ntfs-3g</merge> <merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge> <append key="volume.mount.valid_options" type="strlist">locale=</append> </match> </match> </device> </deviceinfo>
It also made utf8 possible with ntfs.
Isn't it possible to get this working right inside udisks without another daemon running? (preferably also solving the eSATA problem I mentioned earlier?)
That's the only thing left for a proper udisks setup, I think.
Isn't the equivalent of /etc/hal/fdi/policy/10-ntfs3g.fdi (gets installed by ntfs-3g) for udisks missing on ntfs.3g's side?
Code: Select all
<action id="org.freedesktop.udisks.filesystem-mount-system-internal">
<description>Mount a system-internal device</description>
<message>Authentication is required to mount the device</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active> <- THIS LINE: Change "auth_admin_keep" to "yes"
</defaults>
</action>
Code: Select all
[Normal Staff Permissions]
Identity=unix-group:wheel
Action=org.freedesktop.udisks.*
ResultAny=no
ResultInactive=no
ResultActive=yes
Code: Select all
$ck-list-sessions
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty6'
remote-host-name = ''
is-local = FALSE
on-since = '2011-04-03T18:33:49.414204Z'
login-session-id = '2'
Hi! I followed strictly this tuto and recompile with this kernel options but I got a "Kernel panic! cannot open root device 'hda1' " which is IDE. I recompiled with:ssuominen wrote: Required kernel options for sys-fs/udisks:Code: Select all
CONFIG_USB_SUSPEND=y CONFIG_IDE=n
Code: Select all
CONFIG_IDE=y
There should be NO /dev/hd* anymore, those are obsolete. Should be at /dev/sd* when using the new PATA (Parallel ATA) based drivers.MamyPlijadur wrote:Hi! I followed strictly this tuto and recompile with this kernel options but I got a "Kernel panic! cannot open root device 'hda1' " which is IDE. I recompiled with:ssuominen wrote: Required kernel options for sys-fs/udisks:Code: Select all
CONFIG_USB_SUSPEND=y CONFIG_IDE=nand works all fine, even "Restart" and "Shut Down" from Log Out Dialog of Xfce4 which never worked since I taked refuge from Ubuntu to GentooCode: Select all
CONFIG_IDE=y

Thank you for swift responsessuominen wrote: There should be NO /dev/hd* anymore, those are obsolete. Should be at /dev/sd* when using the new PATA (Parallel ATA) based drivers.
You just broke sys-fs/udisks and sys-fs/udev by setting CONFIG_IDE=y.


Code: Select all
passwd -a «USER» polkituser
Wrong. There is no such group or need for it. Such group is a relic from old "policykit", not used by "polkit". You can safely remove the group from your system.|Quantum| wrote:If just found out you also need to be in the polkituser group:
ATM Restart and Shutdown are still greyed out, though.Code: Select all
passwd -a «USER» polkituser
Code: Select all
x_server_tty = qingy_ttyCode: Select all
x_server_tty = unused_tty