1

I have just correct my file permissions using: Need to fix file permissions in a user's 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.

  • Hi, all. Created a new domain and copied to permission. Basically username:psacln. –  Feb 24 '10 at 18:52

1 Answers1

2

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)

Michael Mior
  • 388
  • 1
  • 5
  • 17