diff options
Diffstat (limited to 'packages/vsftpd/files')
-rwxr-xr-x | packages/vsftpd/files/init | 40 | ||||
-rwxr-xr-x | packages/vsftpd/files/vsftpd.conf | 4 |
2 files changed, 22 insertions, 22 deletions
diff --git a/packages/vsftpd/files/init b/packages/vsftpd/files/init index f2e40b3eab..d0ec010dc7 100755 --- a/packages/vsftpd/files/init +++ b/packages/vsftpd/files/init @@ -3,7 +3,7 @@ DAEMON=/usr/sbin/vsftpd NAME=vsftpd DESC="FTP Server" ARGS="" -FTPDIR=/var/tmp/ftp +FTPDIR=/var/lib/ftp test -f $DAEMON || exit 0 @@ -12,30 +12,30 @@ set -e case "$1" in start) echo -n "* starting $DESC: $NAME... " - if ! test -d $FTPDIR; then - mkdir -p $FTPDIR/in - chown ftp $FTPDIR -R - chmod a-w $FTPDIR - chmod u+w $FTPDIR/in - fi - start-stop-daemon -S -b -x $DAEMON -- $ARGS - echo "done." - ;; + if ! test -d $FTPDIR; then + mkdir -p $FTPDIR/in + chown ftp $FTPDIR -R + chmod a-w $FTPDIR + chmod u+w $FTPDIR/in + fi + start-stop-daemon -S -b -x $DAEMON -- $ARGS + echo "done." + ;; stop) echo -n "* stopping $DESC: $NAME... " - start-stop-daemon -K -x $DAEMON - echo "done." - ;; + start-stop-daemon -K -x $DAEMON + echo "done." + ;; restart) echo "* restarting $DESC: $NAME... " - $0 stop - $0 start - echo "done." - ;; + $0 stop + $0 start + echo "done." + ;; *) - echo "Usage: $0 {start|stop|restart}" - exit 1 - ;; + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; esac exit 0 diff --git a/packages/vsftpd/files/vsftpd.conf b/packages/vsftpd/files/vsftpd.conf index f6c5b5064a..08f91e048d 100755 --- a/packages/vsftpd/files/vsftpd.conf +++ b/packages/vsftpd/files/vsftpd.conf @@ -27,11 +27,11 @@ write_enable=YES # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. -anon_upload_enable=YES +#anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. -anon_mkdir_write_enable=YES +#anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. |