Thunar: Not Authorized to mount Drive

Discussions Regarding Software

Moderator: Moderators

Thunar: Not Authorized to mount Drive

Postby sqlpython » Tue May 21, 2013 16:53

Sabayon 11 (3.7.0) Updated 1 week ago and Yesterday May 20 2013
Problem existing before Yesterday's Update.
Code: Select all
 3.7.0-sabayon #1 SMP Sat Apr 27 18:34:22 UTC 2013 i686 Intel(R) Core(TM)2 Duo CPU T5870 @ 2.00GHz GenuineIntel GNU/Linux

Installed Thunar with Thunar-Volman and Gnome-polkit
When attempting to access other Linux partitions on the Home dir drive I am not authorized.
These partitions contain Other Linux installs.
Each of these other Installs when booted have no problems accessing other partitions

Situation is that I know the LiveCD of Sabayon 11 allows access to my Drive's other 5 partitions.(all Linux)
BUT... can't remember as I beginning to doubt that my Install of Sabayon did..I believe so.
I noticed over the weekend that I was prohibited access to my Other Linux Partitions.
As a Side Note Samba access permissions do work.
Groups info
Code: Select all
$ id sqlpython
uid=1000(sqlpython) gid=1001(sqlpython) groups=1001(sqlpython),7(lp),10(wheel),14(uucp),17(console),18(audio),19(cdrom),27(video),80(cdrw),85(usb),100(users),250(portage),410(messagebus),441(scanner),442(plugdev),106(lpadmin),1000(entropy),1019(polkituser),999(pulse-access),998(pulse),997(vboxguest),996(bumblebee),1022(games),1023(sambashare)

I note also that my /etc/polkit-1/rules.d dir contains only
Code: Select all
bobs-sl410 polkit-1 #  ls /etc/polkit-1/rules.d
50-default.rules

Which seems normal..
However as suggested on Gentoo forums and from Gentoo users elsewhere I have added a file.
A Rule /etc/polkit-1/rules.d/50-mount-disk.rules
which reads
cat /etc/polkit-1/rules.d/50-mount-disk.rules
Code: Select all
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

// Mount disk by plugdev group rules for polkit
//

polkit.addRule(function(action, subject) {
    if ((action.id.indexOf("org.freedesktop.udisks.") == 0 ||
         action.id.indexOf("org.freedesktop.udisks2.") == 0 ) &&
        subject.isInGroup("plugdev")) {
             return polkit.Result.YES;
   }
});

While this makes accessible once again & those partitions authorized, I don't believe that is the Original Sabayon Contruct and permissions plan for the install. So, I won't mark this solved just Worked AROUND.

Would others please Comment as to there Thunar Access to Other Partitions.
Also how their polkit-1 Rules may vary.
Mark me Confused.
Criticism accepted for Solutions that work. ;^)
Sabayon 13-DEBIAN 8- #! -Sid-Slackware 14-Calculate 13-Bridge
sqlpython
Technological Hen
 
Posts: 386
Joined: Mon Jun 18, 2007 7:01
Location: If It Moves Compile It

Re: Thunar: Not Authorized to mount Drive

Postby lxnay » Tue May 21, 2013 17:07

Are you using openrc or systemd?
What is the output of (all of them separately):
Code: Select all
loginctl
ck-list-sessions


What login manager are you using?
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3595
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: Thunar: Not Authorized to mount Drive

Postby sqlpython » Tue May 21, 2013 17:28

Code: Select all
[email protected] ~ $ loginctl
   SESSION        UID USER             SEAT           
         1       1000 sqlpython        seat0           

1 sessions listed.
[email protected] ~ $ ck-list-sessions
Session1:
   unix-user = '1000'
   realname = 'sqlpython'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ''
   x11-display-device = ''
   display-device = '/dev/tty7'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2013-05-21T15:13:45.554921Z'
   login-session-id = '1'
   idle-since-hint = '2013-05-21T15:14:15.628731Z'
[email protected] ~ $
Code: Select all
Criticism accepted for Solutions that work. ;^)
Sabayon 13-DEBIAN 8- #! -Sid-Slackware 14-Calculate 13-Bridge
sqlpython
Technological Hen
 
Posts: 386
Joined: Mon Jun 18, 2007 7:01
Location: If It Moves Compile It

Re: Thunar: Not Authorized to mount Drive

Postby lxnay » Tue May 21, 2013 21:54

OK got it.
I am issuing an updated version of sys-apps/systemd which is supposed to fix the issue.
You can fix the issue by reverting to consolekit:
Code: Select all
rc-update del logind boot
rc-update add consolekit boot
reboot
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3595
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: Thunar: Not Authorized to mount Drive

Postby sqlpython » Tue May 21, 2013 22:05

Thank You
I will have to wait until later to apply the fix.
I still do not understand why this happened.
I guess why is not that important.
I obviously do not have a systemd implementation installed as I continue to see
Code: Select all
bobs-sl410 sqlpython # systemctl -a
Failed to get D-Bus connection: No connection to service manager.

Am I correct in my assumption?
Criticism accepted for Solutions that work. ;^)
Sabayon 13-DEBIAN 8- #! -Sid-Slackware 14-Calculate 13-Bridge
sqlpython
Technological Hen
 
Posts: 386
Joined: Mon Jun 18, 2007 7:01
Location: If It Moves Compile It

Re: Thunar: Not Authorized to mount Drive

Postby lxnay » Tue May 21, 2013 22:16

Run my commands anyway and you will see :)
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3595
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: Thunar: Not Authorized to mount Drive

Postby sqlpython » Tue May 21, 2013 22:45

Commands actuated perfectly.
However without my polkit rule posted aboved I am denied access to the partitions.
"Not Authorized"
If I place the rule back in /etc/polkit-1/rules.d then all works perfectly again.

Also I will still get this response from systemd
Code: Select all
bobs-sl410 sqlpython # systemctl -a
Failed to get D-Bus connection: No connection to service manager.

What ever the stock login manager was with the Sabayon 11 Xfce install I still have and never changed.
Any other possibilities?
Criticism accepted for Solutions that work. ;^)
Sabayon 13-DEBIAN 8- #! -Sid-Slackware 14-Calculate 13-Bridge
sqlpython
Technological Hen
 
Posts: 386
Joined: Mon Jun 18, 2007 7:01
Location: If It Moves Compile It

Re: Thunar: Not Authorized to mount Drive

Postby lxnay » Tue May 21, 2013 22:51

systemd is the device manager when you boot with openrc.
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3595
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: Thunar: Not Authorized to mount Drive

Postby sqlpython » Tue May 21, 2013 22:57

I see... I will have to change the Grub then...?
What about Thunar?
Seems the same.
Criticism accepted for Solutions that work. ;^)
Sabayon 13-DEBIAN 8- #! -Sid-Slackware 14-Calculate 13-Bridge
sqlpython
Technological Hen
 
Posts: 386
Joined: Mon Jun 18, 2007 7:01
Location: If It Moves Compile It

Re: Thunar: Not Authorized to mount Drive

Postby sqlpython » Wed May 22, 2013 3:21

This is an important read for anyone interested in where we can go with the systemd switch over.
http://www.gossamer-threads.com/lists/gentoo/dev/271890

Post #25 of the above thread points out (which I had read before elsewhere)
> If you use grub-mkconfig to generate a configuration file, you can
> append the init option by setting
> GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd" in
> /etc/default/grub.
I edit have been editing grub.cfg, menu.lst and lilo.conf for years. Never really had any backlash.
so @lxnay ... Does that one grub line modification really get it cleanly done on an Updated Sabayon 11 .. ????
Seems too easy..
Criticism accepted for Solutions that work. ;^)
Sabayon 13-DEBIAN 8- #! -Sid-Slackware 14-Calculate 13-Bridge
sqlpython
Technological Hen
 
Posts: 386
Joined: Mon Jun 18, 2007 7:01
Location: If It Moves Compile It


Return to Software in General

Who is online

Users browsing this forum: No registered users and 5 guests