Update / File & dir permissions

Moderator: crythias

Locked
rpsu
Znuny newbie
Posts: 3
Joined: 24 Sep 2011, 14:08
Znuny Version: 3.0.10

Update / File & dir permissions

Post by rpsu »

I've upgraded OTRS a couple of times and there's something I do wrong or don't get properly. It seems like bin/otrs.SetPermissions.pl does not do its job and I need to change css + js cache dirs permissions by hand.

Code: Select all

$ chmod g+w /opt/otrs/var/httpd/htdocs/js/js-cache/
$ chmod g+w /opt/otrs/var/httpd/htdocs/skins/Agent/default/css-cache/
I'm on Debian and have OTRS in /opt/otrs symlinked to /opt/otrs-3.0.10. Webserver runs as www-data/www-data and otrs user is otrs/www-data. This is what seems to do nothing run as 'root' or 'otrs':

Code: Select all

bin/otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=www-data --web-user=www-data --web-group=www-data /opt/otrs
Any ideas what I am doing wrong?

I also noticed, that in my case it seems like easier to work as 'otrs' while extracting (tar zxvf orts-x.x.x.tar.gz) instead of doing this as 'root'. This way there's no need to chmod all files (as otrs.SetPermissions.pl does not do it).
diginin
Znuny expert
Posts: 213
Joined: 11 Feb 2008, 12:04
Znuny Version: CVS

Re: Update / File & dir permissions

Post by diginin »

If you are using a sym link, then you must use the script on the real directory. Could this be your issue?
Shawn Beasley
Contact me per XING
Contact me per LinkedIN

OTRS CVS on Ubuntu Stable.

Image
signature by diginin74, on Flickr

Computers are like air conditioners, when you open windows they are useless.



P.S. (für Leser meiner Deutschtexte) Rechtschreibfehler bitte mit s/.*/$KORREKTUR/ ersetzen.
rpsu
Znuny newbie
Posts: 3
Joined: 24 Sep 2011, 14:08
Znuny Version: 3.0.10

Re: Update / File & dir permissions

Post by rpsu »

Script does not work if executed in symlinked dir? Thats seems odd to me. But if that's the case, then this issue is also solved.
I had the same issue on last update to 3.0.9, but I can not recall if I had the same setup (with symlink) at that time.
Benjamin
Znuny newbie
Posts: 39
Joined: 01 Feb 2007, 12:50

Re: Update / File & dir permissions

Post by Benjamin »

yes symlink is definitely the problem.
Locked