I need create a FTP server to upload files directly to apache directory. I have create user with:
useradd -G wheel,apache newuser
and set password with
passwd newuser
I have changed home directory of newuser in /etc/passwd file from /home/newuser to /var/www/html_newuser and set permission to folder:
/var/www/html_newuser with:
chown -R apache.apache /var/www/html_newuser and chmod -R 755 /var/www/html_newuser
When i try to upload file into FTP directory i have
553 Could not create file.
P.S. The same configuration work perfectly in Centos 6.5, this is a Centos 7