I have a Linux server (Debian 7) with lots of users who needs Wordpress. When I create the users what group should they be in? Today I assign them to www-data
.
Then they download Wordpress by SFTP and runs the installation.
Which file permissions and user/group should their files have, specially wp-config.php
?
Now, users can peek in eachothers wp-config.php
from the terminal and read the password. Not very good.
Since the users aren't root they cant change file permissions/owner of wp-config.php
which would solve my problem.
You can use this script by Mike Conigliaro for for setting permissions correctly on all wordpress files.
This is how I solved it: Create users in a group "
users
". Create a script in/etc/cron.hourly
that fixes permissions on all wp-config.php-files like this:Works like a charm.