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

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.

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

1 Answer 1

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)

share|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. –  user48233 Feb 24 '10 at 18:35
    
Hi, all. Created a new domain and copied to permission. Basically username:psacln. –  user48233 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 –  user48233 Feb 26 '10 at 14:31

Your Answer

 
discard

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