On 1/6/06, JD Arnold <[EMAIL PROTECTED]> wrote:
> I'm writing a program that needs to write a file and I'd like to have it
> ask for the root password and run as root, like many of the system config
> applications do.  Do I have to write something special, or is there some
> way to tell KDE (or GNOME) to prompt for the root password? Is this what
> a "setuid" program is?

If it's a graphical program, you can call the gksudo command from
gnome. Or, if you look in its sourcecode, you can find out how it
works and integrate the same into your program.

Mike
--
Michael P. Soulier <[EMAIL PROTECTED]>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to