Permission problems

Moderator: crythias

Locked
patzwald
Znuny newbie
Posts: 11
Joined: 30 Apr 2013, 20:14
Znuny Version: 3.2.x
Real Name: Kay Patzwald
Company: OSZ Bürowirtschaft und Dienstleistungen

Permission problems

Post by patzwald »

Hi,

I have already posted the problem in the german area but no one could help me.

I installed otrs 3.2.x from source on ubuntu. After running SetPermission.pl all works fine. After a few days I get the following permission errors:
ERROR: OTRS-otrs.DeleteCache.pl-10 Perl: 5.10.1 OS: linux Time: Sun Apr 28 00:20:02 2013

Message: Can't remove file /opt/otrs/var/tmp/CacheFileStorable/CacheInternalGroup/e/0/e02b011f1d671126bb434d93a7335827: Permission denied
OR
ERROR: OTRS-otrs.PostMasterMailbox.pl-10 Perl: 5.10.1 OS: linux Time: Tue Apr 30 13:20:05 2013

Message: Can't write '/opt/otrs/var/tmp/CacheFileStorable/CustomerUser/f/b/fba7957c2feaa58bc1a46922ca0f935c': Permission denied
The otrs-user is in the www-data group.

I think there must be a cron-job (an otrs-script) that sets the wrong permissions.

I hope, somebody can help me.

Best regards,
Kay
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Permission problems

Post by crythias »

Run it again

Code: Select all

cd /opt/otrs
bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=www-data --web-group=www-data /opt/otrs
Don't know why it's causing a problem, but you could schedule the setpermissions with one of the other cron jobs.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
patzwald
Znuny newbie
Posts: 11
Joined: 30 Apr 2013, 20:14
Znuny Version: 3.2.x
Real Name: Kay Patzwald
Company: OSZ Bürowirtschaft und Dienstleistungen

Re: Permission problems

Post by patzwald »

Thanks, good idea. I'll let the script run every day. But there must be a problem with the other scripts.
patzwald
Znuny newbie
Posts: 11
Joined: 30 Apr 2013, 20:14
Znuny Version: 3.2.x
Real Name: Kay Patzwald
Company: OSZ Bürowirtschaft und Dienstleistungen

Re: Permission problems

Post by patzwald »

Running SetPermission as otrs-user doesn't work. Now, I installed a cron-job for root and try it again.

Code: Select all

Error in chown 1031 33 /opt/otrs/var/httpd/htdocs/skins/Agent/default/css-cache/CommonCSS_998e5a26cb3c85833bfb561415158496.css: Operation not permitted
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Permission problems

Post by crythias »

most users won't be able to chown to someone else. Root can, though, so make sure the permissions is run as root.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
patzwald
Znuny newbie
Posts: 11
Joined: 30 Apr 2013, 20:14
Znuny Version: 3.2.x
Real Name: Kay Patzwald
Company: OSZ Bürowirtschaft und Dienstleistungen

Re: Permission problems

Post by patzwald »

Thanks, it seams to work. But there must be bugs in the scripts, that setting the wrong permissions, or?
Locked