Update manager permissions

Our support will answer all your general questions here.

Moderator: Rock

Locked
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Update manager permissions

Post by texpert »

As you probably already know, "update manager" module has been added into the TE 2.0. This module allows you to update your TE copies with a single click from the admin panel. No doubt this is a nice feature, but in order for this feature to work, web user must have write permissions for /cgi-bin/te/.

We've done everything in our power to make it work by default on as many server configurations as possible, but there are still some configurations that
will require yours (or administrator's) interaction to get it to work properly. We're still collecting the data and feedback from our customers that cannot use "update manager". Based on the collected info we will update this guide continuously.

To check if your "update manager" works, login to your TE and click on the "update manager" link in the admin panel. If updating is not possible, you will see "Permission denied" warning in the update manager window.

The guide:

Before you start messing with permissions it is recommended to create a backup for "/path/to/cgi-bin/te/".
If you are not familiar with setting permissions in Linux, you should consult your server administrator or at least
test this guide on an inactive site first. If you don't have any inactive sites, you can install a free copy of TE and play with it.

Login to your TE 2.0 and click on the "Update manager" link in the top header. You should see something like this:

Example 1:

User identity:
User: www-data
Group: www-data

CGI-BIN directory identity and permissions: (0755)
User: myuser
Group: www-data

Read: OK
Write: Permission denied
Execute: OK

You don't have permissions to extract the "update package" into the cgi-bin directory.

Solution: chmod directory /cgi-bin/te/ to 757. Do not chmod recursively. Chmod only the "te" directory and nothing else.


Example 2:

User identity:
User: www-data
Group: www-data

CGI-BIN directory identity and permissions: (0755)
User: myuser
Group: myuser

Read: OK
Write: Permission denied
Execute: OK

You don't have permissions to extract the "update package" into the cgi-bin directory.

Solution: chmod directory /cgi-bin/te/ to 775. Do not chmod recursively. Chmod only the "te" directory and nothing else.

kind regards,
Jim
Locked