Hi all, I need to upload files to /var/www/html on our remote centos box. The perms on /var/www/html are stock from the install, (drwxr-xr-x root.root). I set the box for ftp, but (obviously) normal users can't write to that directory. I don't want to allow root ftp logins (I've also disabled root ssh logins, so scp doesn't work either), and I don't know how secure it is to change ownership of the html directory. Can someone float me a couple of hints on how to accomplish this? TIA, -- Tom
Tom Elsesser wrote:> Hi all, > I need to upload files to /var/www/html on our remote centos box. The > perms on /var/www/html are stock from the install,the 'normal' way to do this is to setup a vhost in /etc/httpd/conf.d/ and setup the docroot for that in /home/<someusername>/public_html ; change the perms there to satisfy what apache needs, and set " chcon -R -u system_u -r object_r -t httpd_sys_content_t /home/<username>/public_html/ " and you are done, just upload your content under /home/<username>/public_html/ -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq