• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Installing Templates: Permissions

D

david_3rdday

Guest
Alright I have a question. I think somebody will be able to answer this one pretty quickly. I want to be able to allow a user the ability to run the .bin files on the server, without giving him the root password. What things do I need to give this user permissions to? I have tried a couple of things but I still get errors saying that permission is denied.

Thanks,

David
 
As I understand you wish to allow installing only .bin files (Sitebuilder templates) for users which are not privileged ones. The thing is that templates installation requires administrator rights as it extracts data into /<sb_root>/htdocs/templates/ directory which has following permissions:

[root@fedora6 styles]# ls -ld /usr/local/sitebuilder/htdocs/templates/
drwxr-xr-x 504 root root 20480 Apr 6 13:29 /usr/local/sitebuilder/htdocs/templates/

Also, make sure that file has executive permissions so it could be run. By the way, which way do you use for running .bin files? Please specify.
 
Alright so what would be the best way to do this.
What we do now is switch to the root user and then do an

sh templatename.bin this then installs the template.
 
So in other words I am stuck using the root user to install templates?
 
You can grant appropriate permissions for particular user using this way, for example:
1. Set ownership on /usr/local/sitebuilder/htdocs/templates/ folder:

# chown USER:root /usr/local/sitebuilder/htdocs/templates/

2. Grant ownership for /usr/local/bin/sb_config utility:

# chown USER:root /usr/local/bin/sb_config

But this is not quite secure, so it is not suggested to make these modifications.
 
Back
Top