Running applications as root

Heiko Leberer HALeb at t-online.de
Sun Apr 21 18:50:08 BST 2002


On Sunday 21 April 2002 19:37, Sebastian Schildt wrote:
> Hi!
>
> I currently developing a application, which needs root permissions,
> because it needs raw access to some I/O Ports.
> Is there a way of letting Kdevelop run under a normal user, but execute
> the compiled application as root?


$ chown root:root myprog
$ su
...
# chmod +s myprog

in the program:

setuid(0);

see: man setuid

Heiko

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list