Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to mount drives using udisks without passwords
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
imrambi
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2004
Posts: 116

PostPosted: Sat May 21, 2011 3:26 am    Post subject: Unable to mount drives using udisks without passwords Reply with quote

I am using polkit but can not figure out this issue.

ck-list-sessions:
Quote:
...
active = TRUE
...


~/.xinitrc
Quote:

#!/bin/bash
exec ck-launch-session dbus-launch --exit-with-session --sh-syntax startxfce4


/etc/pam.d/system-login
Quote:

session optional pam_ck_connector.so


/etc/slim.conf
Quote:
login_cmd exec /bin/bash -login ~/.xinitrc


/etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla
Quote:
[Local Users]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks.*
ResultAny=no
ResultInactive=no
ResultActive=yes


If I click on the drive in Thunar or run udisks --mount /dev/sda1 I get prompted for a password, but I can shutdown/restart as a user. If I change system-login to include nox11 option, I can mount without using a password, but I lose the option to shutdown/restart as a user.

I have follow the polkit sticky, but can not find what is causing the issue of being prompted for root password when trying to mount.

use flags:
Quote:

[ebuild R ] gnome-base/gvfs-1.6.7 USE="archive bash-completion bluetooth cdda gdu http samba udev -avahi -doc -fuse -gnome -gnome-keyring -gphoto2 -ios" 0 kB
[ebuild R ] sys-auth/polkit-0.101-r1 USE="gtk nls pam -debug -doc -examples (-introspection) -kde" 0 kB
[ebuild R ] sys-fs/udisks-1.0.2-r1 USE="bash-completion nls -debug -doc -remote-access" 0 kB
Back to top
View user's profile Send private message
imrambi
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2004
Posts: 116

PostPosted: Sun May 22, 2011 8:01 pm    Post subject: Reply with quote

I found out that the issue is only mounting the internal NTFS drive. External USB drives work as expected.
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1305
Location: Tri-Cities, WA USA

PostPosted: Fri Jun 17, 2011 2:21 pm    Post subject: Re: Unable to mount drives using udisks without passwords Reply with quote

I was able to mount a usb stick by adding

Code:

#!/bin/bash
exec ck-launch-session dbus-launch --exit-with-session --sh-syntax gnome-session;

This solved my problem! Thanks
I'm still working on cdrw.

I'm not sure what is going on here:

Code:


azzerare ~ # nano /etc/polkit-1/localauthority/             
azzerare ~ # cd /etc/polkit-1/localauthority
azzerare localauthority # ls
10-vendor.d  20-org.d  30-site.d  50-local.d  90-mandatory.d



_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum