How to fix wrong permissions on CentOS 8 RPM install

Hi all,

after installing Zammad on CentOS 8 you end up seeing “Loading…” the first time you access your server.

  • Used Zammad version: 3.4.x
  • Used Zammad installation source: Official RPM
  • Operating system: CentOS 8
  • Browser + version: Firefox 79.0

Expected behavior:

  • You should be able to access Zammad’s first steps screen

Actual behavior:

  • A blank page with the message “Loading…” is shown instead

Steps to reproduce the behavior:

  • yum install -y zammad

it seems like all permissions under /opt/zammad/public are wrong.

[root@vhelpdesk01 public]# pwd
/opt/zammad/public
[root@vhelpdesk01 public]# ls -l
total 72
-rw-------. 1 zammad zammad 737 Aug 28 16:06 401.html
-rw-------. 1 zammad zammad 750 Aug 28 16:06 404.html
-rw-------. 1 zammad zammad 727 Aug 28 16:06 422.html
-rw-------. 1 zammad zammad 633 Aug 28 16:06 500.html
-rw-------. 1 zammad zammad 7692 Aug 28 16:06 apple-touch-icon.png
drwxr-xr-x. 14 zammad zammad 4096 Sep 1 12:39 assets
-rw-------. 1 zammad zammad 32988 Aug 28 16:06 favicon.ico
-rw-------. 1 zammad zammad 200 Aug 28 16:06 robots.txt
[root@vhelpdesk01 public]#

The fix is easy:

[root@vhelpdesk01 public]# find /opt/zammad/public/ -type f -exec chmod 644 {} ;
[root@vhelpdesk01 public]#
[root@vhelpdesk01 public]# ls -l
total 72
-rw-r–r--. 1 zammad zammad 737 Aug 28 16:06 401.html
-rw-r–r--. 1 zammad zammad 750 Aug 28 16:06 404.html
-rw-r–r--. 1 zammad zammad 727 Aug 28 16:06 422.html
-rw-r–r--. 1 zammad zammad 633 Aug 28 16:06 500.html
-rw-r–r--. 1 zammad zammad 7692 Aug 28 16:06 apple-touch-icon.png
drwxr-xr-x. 14 zammad zammad 4096 Sep 1 12:39 assets
-rw-r–r--. 1 zammad zammad 32988 Aug 28 16:06 favicon.ico
-rw-r–r--. 1 zammad zammad 200 Aug 28 16:06 robots.txt
[root@vhelpdesk01 public]#

Restart your webserver and try again. You should be able to see Zammad as expected.

HTH

Martin

Hi @m_mlk - That’s actually a known bug in our packaging system. I created an issue for it here: https://github.com/crohr/pkgr/issues/165

Unfortunately there hasn’t been a response so far :confused:

We could hax work around that with our postinstall script, however, personally I think that this might be a bit oversize on big installations. This will delay the installation of updates greatly.

find /opt/zammad/public -type f -print0 | xargs -0 -n1024 -P0 chmod 644 <-- this should perform better than the find … -exec … line above… (adjust -n to whatever value works best in your case)

/opt/zammad/publlic should be roughly the same size everywhere… or?
PostgreSQL tables, however, make a difference between a small shop and an enterprise…

:wink:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.