• 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.

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