nixos/vsftpd: allocate group; fix fallout of #133166

main
Guillaume Girol 3 years ago
parent 32f704c4fc
commit eb328077c3
  1. 4
      nixos/modules/misc/ids.nix
  2. 4
      nixos/modules/services/networking/vsftpd.nix

@ -46,7 +46,7 @@ in
messagebus = 4; # D-Bus
haldaemon = 5;
#disk = 6; # unused
vsftpd = 7;
#vsftpd = 7; # dynamically allocated ass of 2021-09-14
ftp = 8;
bitlbee = 9;
#avahi = 10; # removed 2019-05-22
@ -366,7 +366,7 @@ in
messagebus = 4; # D-Bus
haldaemon = 5;
disk = 6;
vsftpd = 7;
#vsftpd = 7; # dynamically allocated as of 2021-09-14
ftp = 8;
bitlbee = 9;
#avahi = 10; # removed 2019-05-22

@ -282,7 +282,8 @@ in
users.users = {
"vsftpd" = {
uid = config.ids.uids.vsftpd;
group = "vsftpd";
isSystemUser = true;
description = "VSFTPD user";
home = if cfg.localRoot != null
then cfg.localRoot # <= Necessary for virtual users.
@ -297,6 +298,7 @@ in
};
};
users.groups.vsftpd = {};
users.groups.ftp.gid = config.ids.gids.ftp;
# If you really have to access root via FTP use mkOverride or userlistDeny

Loading…
Cancel
Save