Permissions on 3.0.8 tarball version

Moderator: crythias

Locked
troffasky
Znuny newbie
Posts: 53
Joined: 04 Apr 2011, 15:38
Znuny Version: 3.2.8
Real Name: Alex Dekker

Permissions on 3.0.8 tarball version

Post by troffasky »

Upgraded today from 3.0.6 -> 3.0.7 -> 3.0.8

Using the tarball version on 10.04.2 LTS.

One thing the UPGRADING notes don't mention about permissions is that the files will all belong to an unknown user [because the tar stores the UID and not the username]. The script bin/otrs.SetPermissions.pl does not address this. I resolved this by running

Code: Select all

chown -R otrs.www-data /opt/otrs
before running otrs.SetPermissions.pl. www-data is user that Apache runs as on Debian-based systems.

Before I did this, Apache was unable to write to otrs/var/httpd/htdocs/js/js-cache/, which mean that the user wouldn't be able to see any of the Javascript in the front end. Messages were logged like:

Code: Select all

[Wed May 25 11:52:25 2011][Error][Kernel::System::Main::FileWrite][444] Can't write '/opt/otrs/var/httpd/htdocs/js/js-cache//ModuleJS_0eac89756477a024393997fc6910208f.js': Permission denied

There is another permissions issue with 3.0.8 [didn't occur on the upgrade to 3.0.7] where /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm is not writeable. This meant that I couldn't get the FAQ or Support-Assessment modules to upgrade.

Code: Select all

[Wed May 25 13:12:25 2011][Error][Kernel::System::SysConfig::WriteDefault][188] Can't write /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm: Permission denied!
I changed it back to otrs.www-data, attempted to reinstall the modules but still it didn't run, giving the same message again. In the end I used a quick and dirty hack:

Code: Select all

# while sleep 0.1; do chown otrs.www-data /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm; done
reinstalled the modules through the web interface and this time it worked. Once done I killed the bash loop.
OTRS 3.2.8 on Ubuntu 12.04.2 LTS
Locked