• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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