diff options
-rw-r--r-- | users/gkleen.nix | 2 | ||||
-rw-r--r-- | ymir.nix | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/users/gkleen.nix b/users/gkleen.nix index 1beaf1c3..648f4ab1 100644 --- a/users/gkleen.nix +++ b/users/gkleen.nix | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | name = "gkleen"; | 2 | name = "gkleen"; |
3 | description = "Gregor Kleen"; | 3 | description = "Gregor Kleen"; |
4 | extraGroups = [ "wheel" "network" "lp" "dialout" "audio" "xmpp" "mail" "ftp" "ssh" "vboxusers" ]; | 4 | extraGroups = [ "wheel" "network" "lp" "dialout" "audio" "xmpp" "mail" "ssh" "vboxusers" ]; |
5 | group = "users"; | 5 | group = "users"; |
6 | uid = 1000; | 6 | uid = 1000; |
7 | createHome = true; | 7 | createHome = true; |
@@ -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 | } |