Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user/group names get too long #15

Closed
qknight opened this issue Mar 8, 2018 · 0 comments
Closed

user/group names get too long #15

qknight opened this issue Mar 8, 2018 · 0 comments

Comments

@qknight
Copy link
Member

qknight commented Mar 8, 2018

issue description

user/group names are getting too long:

the limit is 32 characters according to the useradd manpage

systemctl status static-darkhttpd-options-search-darkhttpd

echo static-darkhttpd-options-search-darkhttpd | wc
      1       1      42

the problem is that systemd won't be able to start the services with a 'too' long username and bail out with a:

Mar 08 18:58:01 nixos systemd[1]: /nix/store/0fd31nk9n2yankhvg5hq2z7nxa7gcr29-unit-static-darkhttpd-iiiiiiii-darkhttpd.service/static-darkhttpd-iiiiiiii-darkhttpd.service:14: Invalid user/group name or numeric ID: static-darkhttpd-iiiiiiii-webserver
Mar 08 18:58:01 nixos systemd[1]: static-darkhttpd-iiiiiiii-darkhttpd.service: Cannot add dependency job, ignoring: Unit static-darkhttpd-iiiiiiii-darkhttpd.service is not loaded properly: Exec format error.

nixpkgs

NixOS/nixpkgs#36556

nixcloud-webservices

@aszlig i'd like to apply this patch

diff --git a/modules/web/core/webserver.nix b/modules/web/core/webserver.nix
index 6d0ebb4..c7d5e12 100644
--- a/modules/web/core/webserver.nix
+++ b/modules/web/core/webserver.nix
@@ -59,7 +59,7 @@ in {
     };
 
     webserver.user = lib.mkOption {
-      default = "webserver";
+      default = "";
       type = lib.types.str;
       description = "The main user name which executes this webservice.";
     };
@@ -76,7 +76,7 @@ in {
     };
 
     webserver.group = lib.mkOption {
-      default = "webserver";
+      default = "";
       type = lib.types.str;
       description = "The main group name which executes this webservice.";
     };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant