• 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

Issue Change multiple folder permissions simultaneously?

LionKing

Regular Pleskian
Server operating system version
Ubuntu Linux
Plesk version and microupdate number
Plesk Obsidian Web Host Edition Version 18.0.54 Update #3
So how do you actually change for a domain somename.domain-whatever.com all folders and sub-folders recursively and simultaneously?
Or chose just to change all file permissions recursively only on the whole root folder?

So far we can only see that you can change one folder and its content at the time, but then both files and folders inherit those permissions set and that isn't very smart or safe for that matter from security standpoint.

There is no other option than this:
1692298941165.png
 
There is no option to select all files --OR-- Just folders and update them all. It basically just change everything to XYZ permission setting.
Even if you tick the box on top which selects all content in the root folder, it doesn't give you an additional option to update them all at once.

Thoughts?
 
The nearest feature request to what you are seeking is Add select tick box to search results to allow action on multiple files. Maybe you want to add your own feature request, describing the idea to limit permission changes to files or even a selection of files (e.g. by a regular expression).

Maybe the same can be done on the Linux console with the help of "find", piping the result to "chmod". You can read a good description how to do it here:
How to Recursively Change the File's Permissions in Linux, e.g.
# find /var/www/vhosts/<domain>/httpdocs -type f -exec chmod u=rw,go=r {} \;
would only change files, not directories.
 
The nearest feature request to what you are seeking is Add select tick box to search results to allow action on multiple files. Maybe you want to add your own feature request, describing the idea to limit permission changes to files or even a selection of files (e.g. by a regular expression).

Maybe the same can be done on the Linux console with the help of "find", piping the result to "chmod". You can read a good description how to do it here:
How to Recursively Change the File's Permissions in Linux, e.g.
# find /var/www/vhosts/<domain>/httpdocs -type f -exec chmod u=rw,go=r {} \;
would only change files, not directories.
Thanks.
Well you can of course do it directly in Linux through the prompt, but obviously it would be faster and easier if you as admin had this privilege too in Plesk. Changing file & folder permissions over FTP takes forever.
Linux through the prompt is fine and fast too; but of course on little mistake and you have really messed up stuff.
 
Back
Top