Assign uid/gid 54 to wwwrun

This commit is contained in:
Eelco Dolstra 2012-08-03 11:05:25 -04:00
parent 23cb924fbf
commit d5d8acfacd
2 changed files with 4 additions and 0 deletions

View file

@ -72,6 +72,7 @@ in
clamav = 51;
fprot = 52;
bind = 53;
wwwrun = 54;
# When adding a uid, make sure it doesn't match an existing gid.
@ -123,6 +124,7 @@ in
mpd = 50;
clamav = 51;
fprot = 52;
wwwrun = 54;
# When adding a gid, make sure it doesn't match an existing uid.

View file

@ -561,10 +561,12 @@ in
{ name = "wwwrun";
group = "wwwrun";
description = "Apache httpd user";
uid = config.ids.uids.wwwrun;
};
users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") singleton
{ name = "wwwrun";
gid = config.ids.gids.wwwrun;
};
environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;