• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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