Ahh now thats a very elegant solution, thank you that looks like it
may solve everything.

Sincerely,
Steve

> The general method is to start as root, do what you need to as root, and
> then switch to the user.group you want to run as.  Cherokee (another web
> server I had sitting around) does this switch by calling initgroups(3),
> setgid(2), and then setuid(2).
>
> --
> Byron Clark
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFG7FxpErN13QQr6mgRAi6BAKCHxCyDNXs8ZfVlmPKow3HLKmC0rACdEmIo
> NLzliQzKIYT0xSw6b4dOW2U=
> =JnNf
> -----END PGP SIGNATURE-----
>
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to