vsftpd: Switch to virtual users

This commit is contained in:
Alexander Kobjolke 2024-12-16 08:53:31 +01:00
parent 499ff0ef62
commit d214fb8aa0

View file

@ -6,11 +6,10 @@
writeEnable = true; writeEnable = true;
chrootlocalUser = true; chrootlocalUser = true;
allowWriteableChroot = true; allowWriteableChroot = true;
userlist = [ "scan" ]; userDbPath = "/etc/vsftpd/users";
}; enableVirtualUsers = true;
virtualUseLocalPrivs = true;
config.users.users.scan = { localRoot = "/var/lib/vsftpd";
isNormalUser = true;
}; };
config.networking.firewall.allowedTCPPorts = [ 21 ]; config.networking.firewall.allowedTCPPorts = [ 21 ];