Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm running an ubuntu server with apache and I have web directory which is owned by the user www-data and the group www-data. WordPress works great in this directory. It can auto update and I can upload files.

I want to also create a web directory which is owned by another custom user I'm going to add. However when I change the owner on the web directory from www-data to the customer user WordPress is no longer to auto update and I can not upload unless I change the group permission.

Is there a way to make my custom user act like the apache www-data user?

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

You can have your customer in the same group as www-data and set your/their FTP config to always upload with group permissions set to be read/writeable by www-data.

What this might be a problem with is when you get another customer. You will not want customer A being able to read/write customer B's data.

Therefore consider doing it the other way, having Apache run with the customer's uid + gid. This can be done, more instructions on how to configure your vhosts etc is here:

http://articles.slicehost.com/2010/5/19/configuring-the-apache-mpm-on-ubuntu

share|improve this answer
    
Cool, I'll check this out over the weekend. I've been considering the 1st approach. Assigning the customer as the owner and www-data as a group and making the permissions 775 for folders and 6664 for files. –  johnnytee Jul 8 '11 at 12:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.