2017年3月23日 星期四

ubuntu vsftp

1.install vsftp
   sudo apt-get update
sudo apt-get install vsftpd

2.add firewall rule
   ...

3.change current user's home directory
     edit /etc/passwd

4.user accout add to www-data group
  sudo usermod -a -G www-data username
  sudo chgrp -R www-data /var/www/html
 sudo chmod -R g+w /var/www/html


5. edit /etc/vsftpd.conf

  chroot_local_user=YES
  local_umask=022



沒有留言:

張貼留言