• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff 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