Unverified Commit d22bc0f6 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

treewide: remove nobody/nogroup [part 1] (#509391)

parents d762978d b8b939cd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -45,13 +45,13 @@ in
      owner = mkOption {
        type = str;
        default = "root";
        example = "nobody";
        example = "alice";
        description = "Owner ${set}";
      };
      group = mkOption {
        type = str;
        default = defaultGroup;
        example = "nobody";
        example = "users";
        description = "Group ${set}";
      };
      mode = mkOption {
+2 −1
Original line number Diff line number Diff line
@@ -111,7 +111,8 @@ in
      type = lib.types.lines;
      default = "";
      example = lib.literalExpression ''
        sed 's/skgid meadow/skgid nogroup/g' -i ruleset.conf
        # replace users/groups that don't exist in the test
        sed 's/skgid meadow/skgid root/g' -i ruleset.conf
      '';
      description = ''
        This script gets run before the ruleset is checked. It can be used to
+2 −2
Original line number Diff line number Diff line
@@ -34,8 +34,8 @@ in
        auth = "plain[passwd=./sample.passwd]"
        tcp-port = 443
        udp-port = 443
        run-as-user = nobody
        run-as-group = nogroup
        run-as-user = ocserv
        run-as-group = ocserv
        socket-file = /run/ocserv-socket
        server-cert = certs/server-cert.pem
        server-key = certs/server-key.pem
+2 −4
Original line number Diff line number Diff line
@@ -24,10 +24,8 @@ in
        # IP address or "*"
        Host: *
        Debug_Mode: Yes # Yes or No
        # If available, "nobody" is much more secure for User:.
        User: root
        # If available, "nobody" is much more secure for Group:.
        Group: root
        User: mighttpd2
        Group: mighttpd2
        Pid_File: /run/mighty.pid
        Logging: Yes # Yes or No
        Log_File: /var/log/mighty # The directory must be writable by User:
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ let
            Override the username or UID (and optionally groupname or GID) used
            in the container.
          '';
          example = "nobody:nogroup";
          example = "alice:users";
        };

        volumes = mkOption {
Loading