[Gtk-sharp-list] Root Access
Adam Tauno Williams
awilliam at whitemice.org
Sun Apr 20 12:01:25 EDT 2008
On Sun, 2008-04-20 at 11:42 -0400, Darwin Reynoso wrote:
> Hi,
> does anyone knows how to execute a program with root access.
> this is what i'm doing...
> protected virtual void onErase (object sender, System.EventArgs e)
> {
> Process pc = new Process();
>
> pc.StartInfo.FileName = "/home/user/bin/usb_pickit";
> pc.StartInfo.Arguments = "-e";
> pc.StartInfo.RedirectStandardOutput = false;
> pc.Start();
>
> }
> but i get a console output saying that i need super user power and
> this is how i do it within a console
> sudo /home/user/bin/usb_pickit -e any ideas please
Set uid usb_pickit (probably a bad idea), use gnomesu (not a bad idea),
or if you are on a Kerberos network (best idea) allocate privileges to
execute the program a root via .kusers, etc... and execute it with ksu.
More information about the Gtk-sharp-list
mailing list