FS#19614 - [gksu] isn't working
Attached to Project:
Arch Linux
Opened by (Krizoman) - Thursday, 27 May 2010, 19:20 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 14 September 2010, 09:37 GMT
Opened by (Krizoman) - Thursday, 27 May 2010, 19:20 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 14 September 2010, 09:37 GMT
|
Details
That's what I get after trying to use gksu... I write
password (correct, my own, but I set up all priveleges for
my user), but it doesn't work...
[krizoman@coldy ~]$ gksu nautilus sudo: sorry, a password is required to run sudo libgksu → 2.0.12-2 (from yesterday) gksu → 2.0.2-2 |
This task depends upon
Closed by Jan de Groot (JGC)
Tuesday, 14 September 2010, 09:37 GMT
Reason for closing: Fixed
Additional comments about closing: Fuixed in libgksu-2.0.12-3.
Tuesday, 14 September 2010, 09:37 GMT
Reason for closing: Fixed
Additional comments about closing: Fuixed in libgksu-2.0.12-3.
sudoers (0.8 KiB)
are you in wheel?
2. Does sudo (the cli command) work?
3. Does gksu work if you use it in su mode (run gksu-properties and change the mode)?
2. Yes, of course.
3. No, I doesn't work in any.
edit: gksu also downgraded to 2.0.2-1 of course.
Can anyone report this bug to gksu authors?
http://www.nongnu.org/gksu/index.html
gksu is being replaced by gksu PolicyKit, please take a look at http://live.gnome.org/gksu.
It works very well with the current packages in repo, provided you use the new sudoers.pacnew file (replace the old one, and edit the new one to your liking). Still, strange that this is needed.
Bah, I hate PolicyKit, it is about as much fun as SElinux. :/
It will soon be to much of a hassle to setup anything yourself without spending much more time on it than I (and most other people) like.
output of gksudo --debug terminal :
No ask_pass set, using default!
xauth: /tmp/libgksu-mw0Zy0/.Xauthority
STARTUP_ID: gksudo/terminal/27294-0-Microstar_TIME0
cmd[0]: /usr/bin/sudo
cmd[1]: -H
cmd[2]: -S
cmd[3]: -n
cmd[4]: -p
cmd[5]: GNOME_SUDO_PASS
cmd[6]: -u
cmd[7]: root
cmd[8]: --
cmd[9]: terminal
buffer: -GNOME_SUDO_PASS-
brute force GNOME_SUDO_PASS ended...
Yeah, we're in...
xauth: /tmp/libgksu-mw0Zy0/.Xauthority
xauth_env: /home/kurt/.Xauthority
dir: /tmp/libgksu-mw0Zy0
sudo: sorry, a password is required to run sudo
Obviously that can not work because of the -n switch. So this is clearly a bug in how sudo is called IMHO. After downgrading to gksu 2.0.2-1 and libgksu 2.0.8-1 it works and i get this output:
No ask_pass set, using default!
xauth: /tmp/libgksu-HDWsqD/.Xauthority
STARTUP_ID: gksudo/terminal/7018-0-Microstar_TIME3066389824
cmd[0]: /usr/bin/sudo
cmd[1]: -H
cmd[2]: -S
cmd[3]: -p
cmd[4]: GNOME_SUDO_PASS
cmd[5]: -u
cmd[6]: root
cmd[7]: --
cmd[8]: terminal
buffer: -GNOME_SUDO_PASSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS-
brute force GNOME_SUDO_PASS ended...
Yeah, we're in...
xauth: /tmp/libgksu-HDWsqD/.Xauthority
xauth_env: /home/kurt/.Xauthority
dir: /tmp/libgksu-HDWsqD
With my libgksu 2.0.10 package it works too and i get a similar output without the -n switch.
edit: make this a bit shorter
They use 01_revert_forkpty.patch from debian to solve this. With the patch applied libgksu 2.0.12 works again as expected here.
I'm a bit new to arch so don't know how to submit my source package.
Can someone give this to the package maintainer or point me in the right direction to get it included in the next updates?
On my system gksudo is simply a symlink to gksu (I did not do that, it already was). Is there another package that supplies just gksudo?
They are the same program. Run gksu-properties to choose whether it uses sudo or su by default.
Anyway,it works here after the latest upgrade, hope it isn't a one-time thing this time!