Prompt for root password

JD Arnold jdarnold at buddydog.org
Fri Jan 6 06:36:22 PST 2006


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?

-- 
Jonathan Arnold     (mailto:jdarnold at buddydog.org)
Daemon Dancing in the Dark, a FreeBSD weblog:
    http://freebsd.amazingdev.com/blog/

UNIX is user-friendly. It's just a bit picky about who its friends are.



More information about the freebsd-questions mailing list