Archive for May, 2014

Adding a Unix with Access Rights for FTP

Friday, May 30th, 2014
  • useradd hcp_ftp -d /home/www/www.xxx.com/htdocs -s /bin/false
  • usermod -a -G ftpdata xxx_ftp
  • usermod -a -G daemon xxx_ftp
  • passwd xxx_ftp
  • vi /etc/proftpd.groupowner

<Directory /home/www/www.xxx.com/htdocs>
UserOwner daemon
GroupOwner daemon
</Directory>

  • service proftpd restart