Permission issue

Moderator: crythias

Post Reply
badaboom
Znuny newbie
Posts: 10
Joined: 16 Apr 2018, 17:28
Znuny Version: 5.0.23

Permission issue

Post by badaboom »

Sorry guy to come with another Permission issue topic.
I have been searching in the forum something that matches my annoying issue and did not found any solution so far.

So here is the thing. In the System Log I keep getting the messages as such:
Can't write '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/6/2/62cdb0e84b7ac4babb6ba3e1b3d2f174': Permission denied
Now when I look at that file I realize that the permissions are set wrong:
-rw-rw---- 1 www-data www-data 34 May 25 11:37 62cdb0e84b7ac4babb6ba3e1b3d2f174
So I re-applied the permissions:
bin/otrs.SetPermissions.pl --otrs-user=otrs --web-group=www-data /opt/otrs
But when any new files in the Dynamicfield section are still created with the wrong permissions.
Is there a way to fix that?

We are using Ubuntu 16.04 and Otrs versin us otrs-6.0.25.

Thanks for your help.
Perry
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Permission issue

Post by root »

Hi,

What's the output of the command id otrs?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
badaboom
Znuny newbie
Posts: 10
Joined: 16 Apr 2018, 17:28
Znuny Version: 5.0.23

Re: Permission issue

Post by badaboom »

Hi Ron

Thanks for quick reply, here is the output:
# id otrs
uid=2041(otrs) gid=2041(otrs) groups=2041(otrs),4(adm),33(www-data),108(syslog),120(postfix)
Perry
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Permission issue

Post by root »

Hi Perry,

please add a few lines before and after the error entry to this post. Maybe there's something related so see.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
badaboom
Znuny newbie
Posts: 10
Joined: 16 Apr 2018, 17:28
Znuny Version: 5.0.23

Re: Permission issue

Post by badaboom »

Hey Ron

This it whats showing up in the System Log screen of OTRS 6.
TIME: Mon May 25 14:07:17 2020 (America/Toronto)
PRIORITY: error
FACILITY: OTRS-otrs.Console.pl-Maint::PostMaster::Read-10
MESSAGE: Can't write '/opt/otrs/var/tmp/CacheFileStorable/DynamicField/a/a/aa1ae88bfbf04fd4fdd5232f8a3e1554': Permission denied
- Perry
badaboom
Znuny newbie
Posts: 10
Joined: 16 Apr 2018, 17:28
Znuny Version: 5.0.23

Re: Permission issue

Post by badaboom »

Problème solved.
Apache was the cause.
This ticket can be closed,

Thank you
avargasn
Znuny newbie
Posts: 1
Joined: 06 Jul 2021, 16:51
Znuny Version: 6.0.35
Real Name: Alberto Noronha

Re: Permission issue

Post by avargasn »

I am facing the same issue. Could you point the Apache fix?
Post Reply