Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-12-18 21:28:50

lavacube
Member
Registered: 2006-11-23
Posts: 4

Alternative?: GUI su/sudo?

Hi there,

I am using Gentoo and want to use a graphical interface to run su and/or sudo. I know there is gnomesu, and Xsu/2 but the dependency list is about 17 other packages I would have to install. I am trying my hardest to not install gnome applications, and was wondering if anyone knew of a nice alternative to Gnomesu/Xsu.

I suppose I could write a small app in Python/Pyxfce but I was wondering if anyone had any better alternatives?

Thanks,
Lavacube

Offline

#2 2006-12-18 23:14:15

systemx
Member
From: ~/
Registered: 2004-06-11
Posts: 69

Re: Alternative?: GUI su/sudo?

gksu (gksudo) is what i use - http://www.nongnu.org/gksu/

Offline

#3 2006-12-19 00:04:43

lavacube
Member
Registered: 2006-11-23
Posts: 4

Re: Alternative?: GUI su/sudo?

systemx wrote:

gksu (gksudo) is what i use - http://www.nongnu.org/gksu/

Wow, only 3 dependencies in Gentoo. Installed the Gnome Keyring, but that is no big deal for me. Works very nicely. Thanks. :-)

Offline

#4 2006-12-20 00:02:08

systemx
Member
From: ~/
Registered: 2004-06-11
Posts: 69

Re: Alternative?: GUI su/sudo?

np

Offline

#5 2014-11-04 08:24:49

droope
Member
Registered: 2011-07-21
Posts: 1

Re: Alternative?: GUI su/sudo?

Hi there,

I coded a quick one in bash with gtkdialog. Gtkdialog can be compiled without too many dependencies:

#! /bin/bash

exec=$@

export MAIN_DIALOG='<vbox>
        <entry>
                <variable>password</variable>
                <visible>password</visible>
        </entry>
        <hbox>
                <button ok></button>
        </hbox>
</vbox>'

out=`gtkdialog --program=MAIN_DIALOG`
eval $out

echo $password | sudo -S $exec

Offline

#6 2014-11-04 09:34:38

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: Alternative?: GUI su/sudo?

droope wrote:

Hi there,

I coded a quick one in bash with gtkdialog. Gtkdialog can be compiled without too many dependencies:

Does that avoid the issues with using sudo for GUI apps, such as writing configuration files in the user's home directory instead of root's and not correctly handling the ownership of .Xauthority that gksu/gksudo takes care of?

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 533.81 KiB (Peak: 534.66 KiB) ]