Assign uid/gid 54 to wwwrun
This commit is contained in:
parent
23cb924fbf
commit
d5d8acfacd
@ -72,6 +72,7 @@ in
|
|||||||
clamav = 51;
|
clamav = 51;
|
||||||
fprot = 52;
|
fprot = 52;
|
||||||
bind = 53;
|
bind = 53;
|
||||||
|
wwwrun = 54;
|
||||||
|
|
||||||
# When adding a uid, make sure it doesn't match an existing gid.
|
# When adding a uid, make sure it doesn't match an existing gid.
|
||||||
|
|
||||||
@ -123,6 +124,7 @@ in
|
|||||||
mpd = 50;
|
mpd = 50;
|
||||||
clamav = 51;
|
clamav = 51;
|
||||||
fprot = 52;
|
fprot = 52;
|
||||||
|
wwwrun = 54;
|
||||||
|
|
||||||
# When adding a gid, make sure it doesn't match an existing uid.
|
# When adding a gid, make sure it doesn't match an existing uid.
|
||||||
|
|
||||||
|
@ -561,10 +561,12 @@ in
|
|||||||
{ name = "wwwrun";
|
{ name = "wwwrun";
|
||||||
group = "wwwrun";
|
group = "wwwrun";
|
||||||
description = "Apache httpd user";
|
description = "Apache httpd user";
|
||||||
|
uid = config.ids.uids.wwwrun;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") singleton
|
users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") singleton
|
||||||
{ name = "wwwrun";
|
{ name = "wwwrun";
|
||||||
|
gid = config.ids.gids.wwwrun;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;
|
environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user