• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Allowing plesk to delete/edite files owned by root

This is possible only if you make Plesk to run as root, which is a major security risk.
 
is there a way i can change the owner a directory/files and its subdirectories/files owner easily?
 
Change to the directory which contains the client's (or users) main directory, then issue:

chown ownername:groupname -R directoryname

If you want to leave the groupname unchanged, then do not specify one, just put the ownername: (with the colon).

Be careful if changing the domain's root/home directory, the owner/user name should be the same as the ftp user name for that domain, and the group should be psacln.

The -R tells the command to do it recursively. You can also put -v to have chown list all files/folders which are changed.

Before doing this, please tell us what directory structure you are thinking of changing the ownership on, so we can verify that you will not cause additional problems on your server!
 
Thanks for the help! ... i was thinking of everything inside httpdocs/ in various domains (uploaded files via ssh and their owner is set to root)
 
That's what I figured, so just make sure you chown the user to the ftp username for that domain, and might as well verify the group is psacln, and all should be well again in the land of nod....
 
Be careful to maintain the permissions of the way the directories were structured when the domain was created. i.e. chowning files from root to the domain is fine within httpdocs, httpsdocs, etc , but not recommended on some of the other folders at that level.
 
Back
Top