sbluhm / uyuni

Source code for Uyuni
https://www.uyuni-project.org/
GNU General Public License v2.0
1 stars 0 forks source link

Fix /var/log/rhn permissions #72

Open sbluhm opened 2 years ago

sbluhm commented 2 years ago

/var/log/rhn has insufficient permissions for tomcat and salt chmod a+w /var/log/rhn -R

Leap:

# ll /var/log
drwxrwx--- 1 root   www         446 Jun 17 07:10 rhn

# ll /var/log/rhn
total 136
-rw-r--r-- 1 tomcat www        0 Jun 16 14:55 gatherer.log
-rw-r--r-- 1 root   root       0 Jun 16 15:02 install_db.log
-rw-rw---- 1 wwwrun www      939 Jun 16 15:02 mgr-ssl-cert-setup.log
-rw-r--r-- 1 root   root   68332 Jun 16 15:01 populate_db.log
drwxr-xr-x 1 root   www        0 Jun 14 10:19 reposync
-rw-r--r-- 1 root   root    3269 Jun 16 15:03 rhn_installation.log
-rw-r--r-- 1 tomcat tomcat     0 Jun 16 15:02 rhn_salt_remote_commands.log
-rw-r--r-- 1 root   root   29077 Jun 18 01:07 rhn_taskomatic_daemon.log
-rw-r--r-- 1 tomcat www      957 Jun 18 00:01 rhn_web_api.log
-rw-r--r-- 1 tomcat tomcat     0 Jun 16 15:02 rhn_web_frontend.log
-rw-r--r-- 1 tomcat tomcat 17304 Jun 17 08:57 rhn_web_ui.log
drwxr-xr-x 1 root   root      70 Jun 16 15:03 search
-rw-r--r-- 1 root   root     374 Jun 18 00:01 subscription-matcher.log
sbluhm commented 2 years ago

https://uyuni.example.com/rhn/admin/Catalina.do also fails due to permissions

sbluhm commented 2 years ago

ootb EL: drwxr-xr-x. 7 root root 4096 6. Mär 11:39 rhn

# ll /var/log/rhn
insgesamt 1796
-rw-r--r--. 1 tomcat apache       0  6. Mär 11:27 gatherer.log
-rw-r--r--. 1 root   root       215  6. Mär 11:28 install_db.log
drwxr-xr-x. 2 apache apache    4096  6. Mär 11:39 mgr-create-bootstrap-repo
-rw-rw----. 1 apache apache     315  6. Mär 11:28 mgr-ssl-cert-setup.log
drwxrwx---. 3 root   apache    4096  6. Mär 11:27 oracle
-rw-rw----. 1 apache apache     801  6. Mär 16:20 osa-dispatcher.log
-rw-r--r--. 1 root   root     79633  6. Mär 11:28 populate_db.log
drwxr-xr-x. 2 root   root      4096  6. Mär 12:21 reposync
-rw-rw----. 1 apache apache    1844  6. Mär 12:40 reposync.log
-rw-r--r--. 1 root   root      2513  6. Mär 11:29 rhn_installation.log
-rw-r--r--. 1 root   root   1185061  6. Mär 20:13 rhn_taskomatic_daemon.log
-rw-r--r--. 1 tomcat apache  522469  6. Mär 16:22 rhn_web_api.log
drwxr-xr-x. 2 root   root      4096  6. Mär 11:29 search
drwxr-xr-x. 4 root   root      4096  6. Mär 11:31 tasko
sbluhm commented 1 year ago

To be updated on spacewalk-backend. Beware of logrotate. it might break things.