You are not logged in.

#1 2011-06-30 21:56:35

Rhiadratech
Member
From: UK
Registered: 2011-05-20
Posts: 32

GKSU issues! [partially solved, exploring other options]

Initial problem solved, but bigger issue uncovered.

Last edited by Rhiadratech (2011-07-03 18:29:08)

Offline

#2 2011-06-30 22:00:58

Rhiadratech
Member
From: UK
Registered: 2011-05-20
Posts: 32

Re: GKSU issues! [partially solved, exploring other options]

Actually, it seems I have a bigger issue.... GKSU doesnt work at all, it thinks the password is wrong, when the same password works for sudo in terminal.

"Failed to run leafpad as user root.

Failed to communicate with gksu-run-helper.

Received:
/bin/su: incorrect password

While expecting:
gksu: waiting"

Last edited by Rhiadratech (2011-06-30 22:06:09)

Offline

#3 2011-06-30 23:24:13

repo
Member
Registered: 2011-03-04
Posts: 14

Re: GKSU issues! [partially solved, exploring other options]

Rhiadratech wrote:

GKSU doesnt work at all, it thinks the password is wrong, when the same password works for sudo in terminal.

gksu expects the root password.

Offline

#4 2011-07-01 00:44:07

Rhiadratech
Member
From: UK
Registered: 2011-05-20
Posts: 32

Re: GKSU issues! [partially solved, exploring other options]

Thats not how it works in *buntu based distros!
I disabled root....
so whats 'The arch way' to elevate graphical apps?

Offline

#5 2011-07-01 03:47:18

nicodoggie
Member
Registered: 2010-12-31
Posts: 15

Re: GKSU issues! [partially solved, exploring other options]

*buntu based distros use gksudo not gksu AFAIK. Try using it instead, I think it should work as you expect.

Offline

#6 2011-07-01 05:30:55

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: GKSU issues! [partially solved, exploring other options]

Rhiadratech wrote:

Thats not how it works in *buntu based distros!
I disabled root....
so whats 'The arch way' to elevate graphical apps?

Disabling root account is not recommended in arch.

Take a look here:

https://wiki.archlinux.org/index.php/Su … root_login

Also, as nicodoggie said, you can use gksudo instead, which is provided by the gksu package itself.

Offline

#7 2011-07-01 11:41:04

Rhiadratech
Member
From: UK
Registered: 2011-05-20
Posts: 32

Re: GKSU issues! [partially solved, exploring other options]

Thanks guys. gksudo does indeed work as I expected gksu to.

Offline

#8 2011-07-01 12:20:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: GKSU issues! [partially solved, exploring other options]

gksu is dead and deprecated. you shouldn't start any applications as root like leafpad.

we have modern solutions this days and is called polkit


Give what you have. To someone, it may be better than you dare to think.

Offline

#9 2011-07-01 14:02:41

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: GKSU issues! [partially solved, exploring other options]

wonder wrote:

gksu is dead and deprecated. you shouldn't start any applications as root like leafpad.

we have modern solutions this days and is called polkit

Thanks for the info on gksu being deprecated.

Would you recommend gksu-polkit or simply polkit? Also, shouldn't the gksu package in the repos be replaced with gksu-polkit in the meanwhile?

Offline

#10 2011-07-01 14:07:17

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: GKSU issues! [partially solved, exploring other options]

there is NO port of gksu using polkit.


Give what you have. To someone, it may be better than you dare to think.

Offline

#11 2011-07-01 14:19:41

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: GKSU issues! [partially solved, exploring other options]

Well i might not be understanding it correctly, but what does this say:

The new gksu will use PolicyKit as backend, instead of su and sudo.

http://live.gnome.org/gksu

And, seems that gksu-polkit packages are available for a few distros:

http://www.google.com/search?hl=en&clie … &aq=f&aqi=

Offline

#12 2011-07-01 14:53:33

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: GKSU issues! [partially solved, exploring other options]

thanks


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2011-07-03 18:28:35

Rhiadratech
Member
From: UK
Registered: 2011-05-20
Posts: 32

Re: GKSU issues! [partially solved, exploring other options]

Wonder, can you expand on that - how does one use polkit to do things needing root access, eg editing config files, installing apps with pacman etc?

If you can explain or point me to a wiki, i'll look into it.

I'm always willing to learn, im still very much a linux noob ^_^ despite using it for a couple of years now.

Offline

#14 2013-10-31 12:29:41

smudger
Member
Registered: 2013-10-31
Posts: 1

Re: GKSU issues! [partially solved, exploring other options]

The OLD "GKSU" has been DEPRECATED for some time now as wonder very correctly advised Over 2 years ago. Over 4 years now since gnome released gksu-polkit as the new secure replacement for gksu. And ArchLinux wholeheartedly embraced PolicyKit.

Unfortunately the gnome wiki is not as clear and explicit as it could be... https://wiki.gnome.org/gksu
For some years it has remained unchanged and should be read to understand that one should now use gksu-polkit instead. I guess the reason they still have the old gksu name and version around is in case there are legacy applications that might just possibly not work with the new polkit version. So they gave the new secure version a new name, which a simple user alias can shorten. Pretty straightforward really... even a relative simpleton like me figured that one out ;=)

I am new to ArchLinux and very very very impressed with ease of installation and seamless compatibility so far, but in this one instance I am frankly amazed how gksu-polkit is not at the very least in the core repositiory and not to mention the extra or community! It is essential for users wanting sudo access to graphical applications as root who on no account should use sudo for graphical applications. You could argue you don't want such a facility in Arch though that would be strange. But then you would have to explain why you have its now ancient gksu available instead of its recommended successor gksu-polkit.

Makes no sense surely? This is now 2013 and nothing seems to have changed in arch re gksu. Whereas everything else is new! Will Arch still have the old now ancient gksu in a decade's time?? Come on guys!

;=)

my 2c

Last edited by smudger (2013-10-31 12:35:24)

Offline

#15 2013-10-31 14:05:12

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

Re: GKSU issues! [partially solved, exploring other options]

Before bumping a 2 year old topic claiming that we're lacking behind, you should have investigated about gksu-polkit. The project has been abandoned upstream, there's a 0.0.2 release full of bugs, some snapshot used by some distros labeled as 0.0.3 and so far nothing is done with it anymore.
For me, gksu-polkit is just as dead as gksu is.
Also, Debian, which is upstream for this project, has removed gksu-polkit from unstable, testing and stable because of this.

Last edited by JGC (2013-10-31 14:07:10)

Offline

Board footer

Powered by FluxBB