I want my program to begin with a prompt/alert that asks for root access. The user must enter their password, and then the application follows. I've been looking around, but I'm not exactly sure how to do this.
You help is greatly appreciated.
Thanks!
Use BLAuthentication. Its much easier to launch authorization as root and you can enter bash commands to run as root.
http://jim.roepcke.com/blog/archives/2002/09/24/blauthentication-class.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.