On Sun, Oct 10, 2010 at 1:09 PM, Mark Morgan Lloyd <markmll.fpc-pas...@telemetry.co.uk> wrote: > Could you suid it to root or to an appropriate group? I've not tried this > for a Pascal/Lazarus program and don't know what the precise rules are for > port usage (i.e. whether the user has to be root or using the root group is > sufficient), but for a C program accessing a video capture device I use > > chown root:video v4lgrab > chmod g+s v4lgrab > > That then allows the program to be run as part of an unprivileged CGI > script.
I'm presently using gksu ./startlazarus. Though it would be nice if I could use gksu -u myusername ./startlazarus and then have the fpSetUID(0) not fail on me. I made the assumption that gksu would startup lazarus under myusername and not fail any attempts for me to use the setgid or uid to root (because I did use gksu to launch the app). This would have been an ideal solution. But there needs to be one library out there that solves this. Presently I am just using root :-( Which means it's working but I'm forced to use the root account for my Lazarus instance. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal