LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Wordpress permissions on Linux server. (https://www.linuxquestions.org/questions/linux-newbie-8/wordpress-permissions-on-linux-server-867603/)

peterson.julia 03-09-2011 10:44 PM

Wordpress permissions on Linux server.
 
I have question regarding setting permissions on wp-content/uploads... in wordpres. I read a tutorial where they want you to set permissions:

chown -R julie.julie uploads/
chmod -R 777 uploads/

777 makes it rwx for others as well. It's not secure! It works but is temporary fix.

How I can make sure that the user julie (wordpress) will be able to write to it but anybody else wont.

Set a sticky bit on the folder? Which one?

Running Cent OS so is in chroot jail.

Thx

jrtayloriv 03-09-2011 11:55 PM

http://codex.wordpress.org/Changing_File_Permissions

peterson.julia 03-10-2011 08:14 PM

Quote:

Originally Posted by jrtayloriv (Post 4285058)

Thanks...I know how to set permissions. The question is "How the properly set permissions on /wp-content/uploads/" in case of linux" if I set it 777 the others can rwx so is it ok? Wont somebody just delete the pics etc what is in there?

Thx

frankbell 03-10-2011 09:15 PM

I don't think you need to worry about the local permissions.

On a hosted site, /wp-content/uploads is not normally open to the public. It is used when a logged in WP user with appropriate WP rights desires to upload content using one of the upload/insert functions that appears above the post text field.

Unless you have enabled public ftp access to that directory, it should be available only to someone with a WP login and appropriate rights (for a linked upload using the built-in uploader) or to an ftp login with access to that directory. If it is available to public ftp, the thing to do is turn off the public ftp.

I have public ftp access turned off with my hosting service. The only way to ftp to my site to use my personal ftp username and pword.

In other words, if your server security is set properly, the local rights on that directory are a non-issue. If people can't get in the front door, they won't get in the closet.

And if a bad guy is sitting at your server doing bad stuff at the keyboard, you have security problems far more serious than permissions issues.


All times are GMT -5. The time now is 07:35 PM.