[PATH] -g option for httpd and default user

Denis Vlasenko vda.linux at googlemail.com
Thu Oct 5 22:53:07 UTC 2006


On Monday 25 September 2006 19:58, Luciano Miguel Ferreira Rocha wrote:
> 
> Hello,
> 
> The attached patch changes httpd in the following ways when
> CONFIG_FEATURE_HTTPD_SETUID is set:
> 
> 1. -u now also sets the group id (from pwent->pw_gid, if found, else
>    same as uid)
> 2. new -g option, defining new group id
> 3. setgid and setuid are always called, even in the absence of -u/-g,
>    and a new option for defining the default was added. Default is "-1".

Committed different patch, please report if something broke.

-u now takes optional group:

-u N = only setsid
-u N:M = setsid + setgid
-u NAME = setsid + setgid to user's primary grp
-u NAME:GRP = setsid + setgid to named group

bloatcheck -84 bytes.
--
vda



More information about the busybox mailing list