[Gambas-user] Create an application with root/sudo previlege

Jose J. Rodriguez joe1962 at ...626...
Tue Apr 3 15:31:29 CEST 2012


On 3/21/12, sundar_ima <sundar_ima at ...251...> wrote:
>
> I am creating an application which calls bash scripts many time with
> sudo/root privilege. Though i can execute bash script with either kdesu or
> gksu, it asks password many times. Instead it would be nice if any one help
> me on opening an application with sudo/root access. I have searched in
> google and found only this link on the subject
> http://old.nabble.com/Re%3A-Gambas-app-run-as-root-p29871170.html
> http://old.nabble.com/Re%3A-Gambas-app-run-as-root-p29871170.html . However
> when i tried (last example by Joe1962) the example, i got an error in
> "Global.root = TRUE" line. In AutoIT adding a line "#include Admin" will
> solve the problem.
> --

Sorry, the example was not the whole app. You need a Global class with
variable named "root" and defined as boolean. It was used to know when
the app was already running as root. I cannot be more clear, or send
the whole code right now because I just lost most of my stuff due to a
hard drive failure.

regards,
Joe1962




More information about the User mailing list