Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I know similar things have been asked a thousandfold, but I can't seem to figure it out..

I have recently started renting a VPS. It runs DirectAdmin. I created a reseller account in the admin account, and created a new user (with FTP account) with the reseller account.

I logged in with FTP as the created user and uploaded a zip file and a php file which will extract the zip. But when running the script in the browser I get "Permission denied" errors however. Probably because Apache is not in the same group as the users FTP account.

Now my question is: How can I solve this once and for all, so that I don't have to do it again for every new user account I create through DirectAdmin?

share|improve this question
add comment

1 Answer

The basic idea is to add apache user to the same FTP users group (like ftpusers) and grant this group ftpusers the needed permissions on the desired folders. So, each new FTP user member of this group in addition to apache will have the needed permissions.

share|improve this answer
    
k, tnx. trying that, I find that the ftp user is only in 1 group with the same name. same for another user.. There is also a ftp group, but it's only member is the user 'ftp'. –  FlyOn Aug 30 '12 at 10:43
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.