Setup I am trying to accomplish:
We want to run a website that will be stored in /var/www/html. We have 1 account (webadmin) that needs to be able to use FTP to upload files to that directory. Currently that account is getting a permissions error.
In the vsftpd.conf I have the following:
# Uncomment this to allow local users to log in.
local_enable=YES
# lock down users to their home directories
chroot_local_user=YES
Also the home directory of webadmin is set to
[root@server vsftpd]# ~webadmin
-bash: /var/www/html: is a directory
The rights in this directory are:
[root@server vsftpd]# ls -alZ /var/www/html
drwxrwxr-x webadmin webadmin system_u
bject_r:httpd_sys_content_t .
drwxr-xr-x root root system_u
bject_r:httpd_sys_content_t ..
-rw------- webadmin webadmin system_u
bject_r:httpd_sys_content_t .bash_history
-rwxr-Sr-x root root system_u
bject_r:httpd_sys_content_t index.html
-rw------- webadmin webadmin system_u
bject_r:httpd_sys_content_t .viminfo
Any thoughts on what I am doing incorrectly ? Another bit of info is that a second user gets the same permission error going to a different directory. This one has a home directory set to /home/user1.
Thanks,
Bill