I have just correct my file permissions using: http://serverfault.com/questions/35076/need-to-fix-file-permissions-in-a-users-home-directory

Looking for the same commands and explanation to correct ownership of files and directories in the user directory (/var/www/vhosts/domain.com/*) for ownership of files.

I am running CentOS and Plesk Panel and currently logged in as root via ssh.

link|improve this question
Hi, all. Created a new domain and copied to permission. Basically username:psacln. – esryl Feb 24 '10 at 18:52
feedback

1 Answer

up vote 1 down vote accepted

chown has a recursive option. So you can just do chown -R user:user /var/www/vhosts/domain.com/* (where user is the user you would like to change ownership to)

link|improve this answer
This is easier than the equivalent using chmod since files and directories don't need to be treated differently. – Michael Mior Feb 24 '10 at 18:35
I did try that already and get invalid group error. – esryl Feb 24 '10 at 18:35
Hi, all. Created a new domain and copied to permission. Basically username:psacln. – esryl Feb 24 '10 at 18:52
I take it this means your problem is resolved? :) – Michael Mior Feb 24 '10 at 22:38
Indeed you fixed me up :) Thank you – esryl Feb 26 '10 at 14:31
show 1 more comment
feedback

Your Answer

 
or
required, but never shown

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