Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...