SetPermissions not correctly setting httpd folder

Moderator: crythias

Locked
keithf4
Znuny newbie
Posts: 23
Joined: 28 Jan 2011, 23:01
Znuny Version: 3.0.5

SetPermissions not correctly setting httpd folder

Post by keithf4 »

Just did an upgrade from 3.0.5 to 3.0.6. Was getting the same error as this post http://forums.otrs.org/viewtopic.php?f=63&t=8184 .
Starting a new thread because the other was marked Solved and this is not solved. The SetPermissions script is not correctly setting the folder permissions for the otrs/var/httpd folder. It's leaving them set as otrs:otrs owned when they need to be at least writable by the apache web user (www-data in the case for Ubuntu).
OTRS 3.0.7 | Ubuntu 10.04 LTS | Postgresql 8.4.7
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SetPermissions not correctly setting httpd folder

Post by jojo »

can yu post the command you used?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
keithf4
Znuny newbie
Posts: 23
Joined: 28 Jan 2011, 23:01
Znuny Version: 3.0.5

Re: SetPermissions not correctly setting httpd folder

Post by keithf4 »

I used the /otrs/bin/otrs.SetPermissions.pl file

To fix it I made the /otrs/var/httpd folder owned by the www-data group
chgrp -R www-data httpd

Then made the folder group writable
chmod -R g+w httpd
OTRS 3.0.7 | Ubuntu 10.04 LTS | Postgresql 8.4.7
keithf4
Znuny newbie
Posts: 23
Joined: 28 Jan 2011, 23:01
Znuny Version: 3.0.5

Re: SetPermissions not correctly setting httpd folder

Post by keithf4 »

Just did the upgrade from 3.0.6 to 3.0.7. This is still happening

Code: Select all

sudo ./otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=otrs --web-group=www-data /opt/otrs
It's leaving several folders with the user permissions that extracted the tar file. As an example of the /var folder

Code: Select all

drwxrwsr-x 2 otrs   www-data  4096 2011-03-25 01:39 article
drwxr-xr-x 2 pcrweb pcrweb    4096 2011-03-25 01:39 cron
drwxr-xr-x 3 pcrweb pcrweb    4096 2011-03-25 01:39 httpd
drwxrwsr-x 2 otrs   www-data  4096 2011-04-12 11:15 log
-rw-r--r-- 1 pcrweb pcrweb   23707 2010-10-26 09:49 logo-otrs.png
drwxr-xr-x 2 pcrweb pcrweb    4096 2011-03-25 01:40 packages
drwxrwsr-x 2 otrs   www-data  4096 2011-03-25 01:39 sessions
drwxrwsr-x 2 otrs   www-data  4096 2011-03-25 01:39 spool
drwxrwsr-x 2 otrs   www-data  4096 2011-03-25 01:39 stats
drwxrwsr-x 4 otrs   www-data  4096 2011-04-12 11:25 tmp
pcrweb is our general web server user
OTRS 3.0.7 | Ubuntu 10.04 LTS | Postgresql 8.4.7
Locked