You are not logged in.

#1 2007-02-07 11:01:38

Master One
Member
From: Europe
Registered: 2007-01-21
Posts: 249

HELP: Gnome gksu / sudo not working (fresh installation)

I can't decide which DE. I am a longtime KDE user, but I'd rather not mix GTK & QT apps, and I need gnucash, so I thought I try XFCE (which I really like, but seems too minimalistic to me) and now Gnome. I performed a completely new Arch installation (base + xorg + gnome & additional gnome stuff), and now I am facing a very strange problem: gksu is just not working in some way!

Right after I finished installing, I launched Gnome, everything came up as expected, but when I went trough the menus, I found System -> Administration -> gdmsetup (may show up different, this is my translation from German) not working . More playing around showed, that gksu is not working as intended:

When I try 'gksu gedit' in a terminal, it gives the following error message, but is opening gedit:

(gedit:5444): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.

'ps fax' is showing:

5438 ?        Ss     0:00 /bin/su root -c /opt/gnome/lib/libgksu/gksu-run-helper "gedit"
5439 ?        S      0:00  \_ /opt/gnome/lib/libgksu/gksu-run-helper gedit
5444 ?        S      0:00      \_ gedit

When I try 'gksu nautilus' in a terminal, it gives the same error message, but nautilus is not opening:

$ gksu nautilus

(nautilus:5461): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.

Nevertheless 'ps fax' shows nautilus running:

5455 ?        Ss     0:00 /bin/su root -c /opt/gnome/lib/libgksu/gksu-run-helper "nautilus"
5456 ?        S      0:00  \_ /opt/gnome/lib/libgksu/gksu-run-helper nautilus
5461 ?        S      0:00      \_ nautilus

The same happens with 'gksu gdmsetup', except that it gives no error message, but does not start, and shows up in 'ps fax' as follows:

5486 ?        Ss     0:00 /bin/su root -c /opt/gnome/lib/libgksu/gksu-run-helper "/opt/gnome/sbin/gdmsetup"
5487 ?        S      0:00  \_ /opt/gnome/lib/libgksu/gksu-run-helper /opt/gnome/sbin/gdmsetup
5492 ?        S      0:00      \_ /opt/gnome/sbin/gdmsetup

All these tests using 'sudo' instead of 'gksu' lead to the exact same results, except that it does not give any error messages in the terminal (so gedit opens, but nautilus and gdmsetup not).

What am I missing here?

As mentioned, this is a completely fresh installation, means, cleaning out all files in root's and user's home-dir did not change anything, and yes, I have the latest dbus/hal/udev update from today morning installed (although I do not think this has something to do with these).

Offline

#2 2007-02-07 14:29:58

desertViking
Member
From: Arizona
Registered: 2005-10-30
Posts: 170

Re: HELP: Gnome gksu / sudo not working (fresh installation)

Hey,

Saw your question in the IRC.

How ru starting Gnome?  Should have something like this in .xinitrc:

exec dbus-launch --exit-with-session /opt/gnome/bin/gnome-session

and you should have the dbus daemon started.


"In theory, there's no difference between theory and practice, but in practice there is."

Offline

#3 2007-02-11 18:57:47

metromini
Member
From: Jakarta, Indonesia
Registered: 2005-08-02
Posts: 39

Re: HELP: Gnome gksu / sudo not working (fresh installation)

I'm also facing same problem with gdmsetup after recent upgrade...
Someone at gentoo forum (here) solved the problem by downgrading dbus version from dbus-1.0.2 to dbus-0.62-r2.

Another suggestion is to use this command (as root):
#dbus-launch /opt/gnome/sbin/gdmsetup

Last edited by metromini (2007-02-11 19:01:38)

Offline

#4 2007-02-11 22:59:39

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: HELP: Gnome gksu / sudo not working (fresh installation)

Ok, should work again now. dbus-glib deadlocked in some conditions when using sudo-alike applications. dbus-glib 0.7.2-2 from current fixes this issue.

Offline

Board footer

Powered by FluxBB