Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix /var/log/rhn permissions #72

Open
sbluhm opened this issue Feb 19, 2022 · 3 comments
Open

Fix /var/log/rhn permissions #72

sbluhm opened this issue Feb 19, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@sbluhm
Copy link
Owner

sbluhm commented Feb 19, 2022

/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
Copy link
Owner Author

sbluhm commented Mar 4, 2022

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

@sbluhm
Copy link
Owner Author

sbluhm commented Mar 6, 2022

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 sbluhm added the bug Something isn't working label Mar 6, 2022
@sbluhm sbluhm moved this to In Progress in Fix Planning Mar 3, 2023
@sbluhm
Copy link
Owner Author

sbluhm commented Jun 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: In Progress
Development

No branches or pull requests

1 participant