* vsftpd: use /var/empty instead of /var/ftp/empty as the empty

chroot (the latter doesn't exist).
* vsftpd: make the anonymous user's home read-only, otherwise vsftpd
  will fail.

svn path=/nixos/trunk/; revision=27983
This commit is contained in:
Eelco Dolstra 2011-07-28 09:42:20 +00:00
parent 2dc81fc9dd
commit 31afd2bb2e

View file

@ -120,11 +120,11 @@ in
background=NO
listen=YES
nopriv_user=vsftpd
secure_chroot_dir=/var/ftp/empty
secure_chroot_dir=/var/empty
EOF
${if cfg.anonymousUser then ''
mkdir -p ${cfg.anonymousUserHome}
mkdir -p -m 555 ${cfg.anonymousUserHome}
chown -R ftp:ftp ${cfg.anonymousUserHome}
'' else ""}
'';