CentOS / Redhat: Give file permission for apache and vsftp
        Posted  
        
            by 
                paskster
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by paskster
        
        
        
        Published on 2010-12-03T17:02:06Z
        Indexed on 
            2011/01/16
            19:55 UTC
        
        
        Read the original article
        Hit count: 427
        
I use CentOS 5.5 and Apache Webserver on my dedicated Server. My Folder "/var/www/myWebApp" is owned by apache, so that apache can read, write logs, etc..
But now I would like to use very secure FTP (vsftp) to upload my new files. I used to give every user rwx -Acess to "/var/www/myWebApp", but I guess this is way to insecure.
On CentOS I created another user "ftpuser" for uploading files and that has "/var/www/myWebApp" as its home directory. How can I give him the permission to write into the "/var/www/myWebApp" without giving every user the same rights?
© Server Fault or respective owner