- 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