Owner and Group (FTP permissions error)
To the online user browsing our website, everything appears to be perfect. I've disabled root login and I'm using my one sudo user to log in via FTP, using WinSCP. I'm running a straight html site at the root web folder (/home/user/public/website.com/public/) and I have a WP blog running in a subfolder there. My problem is that I must have the ownership messed up for the folders because I can't write files via FTP. Is it possible that I've flipped the ownership/user? I would appreciate any advice that you may have as to how I can properly set up chmod and chown for this site. If you see anything here that looks to open to security issue also, please let me know. Thanks!
Working down the folders from /home/user/, I have this right now ('user' is standing in for my actual sudo username):
> drwxr-xr-x 4 user user 4096 2012-06-12 12:16 public
drwxrwxr-x 5 user user 4096 2012-05-31 11:16 website.org
drwxr-xr-x 34 user user 12288 2012-06-15 09:42 public <–-this is the actual site with index.html
-rw-r--r-- 1 www-data user 28187 2012-06-14 10:05 index.html <---every file in website
drwxr-xr-x 19 www-data user 4096 2012-01-03 17:17 wordpressblog <---every folder in website
2 Replies
Thanks!