1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/modules/misc
Peter Simons 0ef085d58a Add services.httpd.fixUidAndGid option to assign reliable numeric UID and GID for the Apache user.
The option is disabled by default so that previously existing installations
aren't affected.

If you'd like to migrate to the fixed numeric id for Apache, set "fixUidAndGid
= true", edit the file "/etc/groups" and replace the old GID value with 54.
(NixOS can't do that for you because it refuses to change a GID that identifies
the primary group of a user.) Then run

  find / -xdev -uid $oldUID -exec chown 54 {} +
  find / -xdev -gid $oldGID -exec chgrp 54 {} +

to update ownership of all files that are supposed to be owned by Apache.
2012-08-03 16:39:55 +02:00
..
assertions.nix assertions '.msg' doesn't exist => .message 2012-04-01 10:54:06 +00:00
check-config.nix Convert module which are declaring options into modules separated with an 2009-09-15 08:33:45 +00:00
crashdump.nix crashdump: it required some kernel options for the nmi_watchdog to work. 2012-07-18 21:50:18 +02:00
ids.nix Add services.httpd.fixUidAndGid option to assign reliable numeric UID and GID for the Apache user. 2012-08-03 16:39:55 +02:00
lib.nix Add lib module for modules to provide helper functions 2012-07-12 13:46:04 -04:00
locate.nix strip trailing whitespace; no functional change 2011-09-14 18:20:50 +00:00
nixpkgs.nix Reverting revisions 30103-30106: "always set nixpkgs.config.{state,store}Dir", etc. 2011-10-30 15:19:58 +00:00
passthru.nix strip trailing whitespace; no functional change 2011-09-14 18:20:50 +00:00
version.nix nixos-version: "pre-svn" -> "pre-git" 2012-06-22 10:28:06 -04:00