Results 1 to 2 of 2
Hi. I'm writing a program that requires root privileges. Can anyone point out the logic on how my program can prompt the user to enter root password if the user ...
- 07-19-2008 #1Just Joined!
- Join Date
- Jul 2008
- Posts
- 12
Passing root permission
Hi. I'm writing a program that requires root privileges. Can anyone point out the logic on how my program can prompt the user to enter root password if the user isn't the superuser. I want it to be dynamic so the user won't have to "sudo" in a terminal just to run the program. thanks.
- 07-19-2008 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Is it a script? You could always use kdesu or gksu to deal with it if their $UID is not equal to zero.


Reply With Quote