You are not logged in.

#1 2011-10-09 09:45:36

solstice
Member
Registered: 2006-10-27
Posts: 237
Website

[solved] nautilus throws 'not autorized' error when mounting usb keys

hi.
I had problem with gdm (gdm gives only a black screen with a clock cursor solved since)
So I login directly from the console by running startx.
But nautilus began to throw errors when attempting to mount or unmount usb keys. 'Not authorized'.

Then I began to use ck-launch-session in .xinitrc with

exec ck-launch-session gnome-session

From what I understand it's the correct use. So nautilus should not have had problem after that. But that's changed nothing

WHY ? I just want to know why ?

Note: it's works now that I login from gdm. But I just want to understand that thing and what's wrong

Last edited by solstice (2011-10-09 18:40:27)

Offline

#2 2011-10-09 15:30:27

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [solved] nautilus throws 'not autorized' error when mounting usb keys

Do you have something like this in your /etc/pam.d/login?:

-session	optional	pam_ck_connector.so nox11

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2011-10-09 17:08:50

solstice
Member
Registered: 2006-10-27
Posts: 237
Website

Re: [solved] nautilus throws 'not autorized' error when mounting usb keys

yes. I have.

Last edited by solstice (2011-10-09 17:12:30)

Offline

#4 2011-10-09 18:03:16

oboedad55
Member
From: Baku
Registered: 2011-04-05
Posts: 392

Re: [solved] nautilus throws 'not autorized' error when mounting usb keys

Try putting "dbus-launch" before gnome-session.


Registered Linux user #436067

Offline

#5 2011-10-09 18:39:30

solstice
Member
Registered: 2006-10-27
Posts: 237
Website

Re: [solved] nautilus throws 'not autorized' error when mounting usb keys

It works ! Thanks

That becomes tricky to get all the pieces together to get it working.

I am confused. Then what's the purpose of dbus that I have added to the DAEMONS array in /etc/rc.conf. omg
I'll try to get some doc and found out...

Edit: it creates a dbus session... mmh.
Edit2:
I have used

exec ck-launch-session dbus-launch gnome-session

Is it a correct order ? or

exec dbus-launch ck-launch-session gnome-session

is better ?

Last edited by solstice (2011-10-09 19:06:55)

Offline

#6 2011-10-09 19:11:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] nautilus throws 'not autorized' error when mounting usb keys

https://wiki.archlinux.org/index.php/Xi … us_session says it should be

exec ck-launch-session dbus-launch gnome-session

Edit: LOL - you wrote that part of the wiki yourself :-)

Edit 2:
https://wiki.archlinux.org/index.php/Xfce#Manually says

dbus-launch should actually be called after ck-launch-session, otherwise there will be authorization problems when mounting disks as a regular user, see https://bugs.archlinux.org/task/25031

Last edited by karol (2011-10-09 19:14:21)

Offline

#7 2011-10-09 19:30:03

solstice
Member
Registered: 2006-10-27
Posts: 237
Website

Re: [solved] nautilus throws 'not autorized' error when mounting usb keys

I was going to ask why do I need to run dbus-launch a second time since it is launched from /etc/X11/xinit/xinitrc.d/30-dbus

But that's the culprit. All of this because I have included the snippet

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

in my ~/.xinitrc after seeing it in /etc/skel/.xinitrc

I shouldn't have done that. go figure !

Offline

Board footer

Powered by FluxBB