vsftpd: Switch to virtual users
This commit is contained in:
parent
499ff0ef62
commit
d214fb8aa0
1 changed files with 4 additions and 5 deletions
|
|
@ -6,11 +6,10 @@
|
|||
writeEnable = true;
|
||||
chrootlocalUser = true;
|
||||
allowWriteableChroot = true;
|
||||
userlist = [ "scan" ];
|
||||
};
|
||||
|
||||
config.users.users.scan = {
|
||||
isNormalUser = true;
|
||||
userDbPath = "/etc/vsftpd/users";
|
||||
enableVirtualUsers = true;
|
||||
virtualUseLocalPrivs = true;
|
||||
localRoot = "/var/lib/vsftpd";
|
||||
};
|
||||
|
||||
config.networking.firewall.allowedTCPPorts = [ 21 ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue