Re: How to 'su' to root from a script using Xdialog?
On Tue, 21 Mar 2006, Michelle Konzack wrote:
I like to have a Dialog which tell the $USER: "This programm requires
root permission. Please enter the password:"
GNOME programs tend to use "gksu" for this. You might find it would be
appropriate for you to use in your program, too. KDE provides "kdesu" for
the same purpose. Note that gksu, at least, does support using sudo to
get root if the user has the ability to sudo.
Alternately, you could just prompt the user via a dialog you write, but
then you'll have to be sure that it doesn't leak the root password by
having it show up in command-line arguments or other generally visible
You can always find what you're not looking for.