Help with permissions issue

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Help with permissions issue

Post by phalek »

On a RockyLinux 8, you can check the selinux permissions/settings with:

Code: Select all

ls -Z /var/www/html/cacti/plugins/weathermap/
which should show you this:

Code: Select all

drwxrwxr-x. 11 apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0    4096 Jul 22 16:09 weathermap
If it is showing this ( or anythenge else but the above):

Code: Select all

drwxrwxr-x. 11 apache apache unconfined_u:object_r:user_tmp_t:s0                4096 Jul 22 16:09 weathermap
Then you need to "restore" the correct SELinux context using this:

Code: Select all

restorecon -Rv  /var/www/html/cacti/plugins/
It will re-label the files with the correct context then. and it should still work with SELinux enabled.


Btw, this usually only happens if you have extracted the archive somewhere else and then moved it into that directory. If you extracted the archive directly within the plugins directory, then the context is usually already correctly set.

A side Note:

You can check the default context of a directory using the following semanage command ( this one greps for all /var/www entries):

Code: Select all

semanage fcontext -l | grep /var/www

---
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests