Fixing vsftpd regarding the anonymous user (some script lines had to be run
only in the case the anonymous user service were enabled) svn path=/nixos/trunk/; revision=21669
This commit is contained in:
parent
f8ff75202e
commit
0d92459fb5
@ -123,8 +123,11 @@ in
|
|||||||
secure_chroot_dir=/var/ftp/empty
|
secure_chroot_dir=/var/ftp/empty
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p ${cfg.anonymousUserHome}
|
${if cfg.anonymousUser then ''
|
||||||
chown -R ftp:ftp ${cfg.anonymousUserHome}
|
mkdir -p ${cfg.anonymousUserHome}
|
||||||
|
chown -R ftp:ftp ${cfg.anonymousUserHome}
|
||||||
|
'' else ""}
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
exec = "${vsftpd}/sbin/vsftpd /etc/vsftpd.conf";
|
exec = "${vsftpd}/sbin/vsftpd /etc/vsftpd.conf";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user