在ubuntu上设置discuz远程附件
1 安装sftpd
sudo apt-get install vsftpd
2 设置ftp
/etc/vsftpd.conf # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022
3 增加用户
useradd -m ftp-user
4 将用户HOME目录链接到网站附件域名下
sudo ln -s /home/ftp-user /var/www/njava-att