• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Bulk permission change

vincenzot

Regular Pleskian
Hello,

how I can do an bulk permission change into account plesk?

I have need to activate "multi ftp account" for customers, but I have about 200 customers in the server and I don't want do it manually, exist any kinds of command for do it directly on mysql?
 
You can use some script with selection from database and Plesk CLI utility. For example:

for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/domain_pref -u $i -manage_subftp=true; done

note that it is just template. Modify it according to your purposes.
 
Back
Top