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;
|
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 ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue