• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

CLI Manage Domain User Permissions?

J

JosephB

Guest
Using the client preferences CLI (client_pref.exe) it is possible to manage the client's permissions, although the domain preferences CLI seems to omit this. Is there any way using the CLI tools to configure the domain user permissions? For example to enable or disable "Physical hosting management" for the domain user?

If it is not possible to do this via the CLI then is there any other way? Where does Plesk store the permissions settings for each domain user on the machine? Maybe I can just write something to edit that value directly.
 
I found where Plesk stores the data, it is within a separate install of the MySQL server... two instances of MySQL running! Is that not a huge waste of system resources?

Is there somewhere that I can configure Plesk to use the main MySQL server...? I prefer not to have two instances of MySQL running, and I want to be able to access the data more easily since the CLI tools are too limited.

Thanks!
 
It looks like the only way to edit the domain user permissions may be to use the RPC API:
http://download1.swsoft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-sdk-html/docs/plesk_agent/ch05.html

If anyone knows of an easier command line solution then please let me know, but I'm glad to see it is possible.

Regarding the two instances of MySQL, it looks like it would be very difficult to merge the two; I just really don't like this inefficient design, Plesk is wasting too many system resources.
 
Hello, gentlemen

Creation Utilities functions for this feature will be available in Plesk 8.0 for Windows, the next version. It`s release is within the next month.
 
Thank you, that is great news, and I look forward to upgrading.

In the meantime I am using the RPC API instead, although just a note that the RPC XML API is also missing several options to update specific settings such as the domain user's ability to manage domain aliases, FTP subaccounts, and hosting performance.
 
In fact, you can find the most recent features in the Plesk RPC API in it`s xml schema.
This schema can be found in %plesk_dir%\admin\htdocs\schemas on your Plesk server.
 
Excellent, thank you Skeeter, I now have everything working the way I wanted.

By the way, I have made a lot of changes to my system by changing the way the Tomcat service is set-up to significantly improve the security, and I also upgraded to PHP5. Running the Plesk Reconfiguration, Check & Repair is fine and doesn't cause problems. So do you think that Plesk upgrades will break anything, or should it be fine?

Thank you for all of your help, I really appreciate it!
 
Back
Top