PDA

View Full Version : get root privileges in gtk apps



scorpio2002
December 18th, 2006, 11:40 PM
Hi there! I'm developing a gtk2+ application and I'd like to know how do you prompt the user for root password... (this program needs to modify some memory registers...).

ciscosurfer
December 19th, 2006, 12:14 AM
Hi there! I'm developing a gtk2+ application and I'd like to know how do you prompt the user for root password... (this program needs to modify some memory registers...).You can use gksu or gksudo (or kdesu for kde apps) to prompt the user to enter the administrative password. You can learn more about them here (http://www.psychocats.net/ubuntu/graphicalsudo).