diff options
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -983,14 +983,18 @@ in rec { | |||
983 | pasv_min_port=20000 | 983 | pasv_min_port=20000 |
984 | 984 | ||
985 | allow_writeable_chroot=yes | 985 | allow_writeable_chroot=yes |
986 | |||
987 | guest_enable=yes | ||
988 | guest_username=vsftpd | ||
989 | virtual_use_local_privs=yes | ||
990 | user_sub_token=$USER | ||
991 | local_root=/srv/ftp/$USER | ||
992 | hide_ids=yes | ||
986 | ''; | 993 | ''; |
987 | }; | 994 | }; |
988 | 995 | ||
989 | security.pam.services."vsftpd".text = '' | 996 | security.pam.services."vsftpd".text = '' |
990 | auth requisite pam_succeed_if.so user ingroup ftp | 997 | auth required pam_pwdfile.so pwdfile /srv/ftp.htpasswd |
991 | 998 | account required pam_permit.so | |
992 | auth include ftp | ||
993 | account include ftp | ||
994 | session include ftp | ||
995 | ''; | 999 | ''; |
996 | } | 1000 | } |