How to change default permissions of CUPS log files?
Issue
- How do I change default permission of all cups logs?
- We Need to change permission of
/var/log/cups/error_log
from600
to620
- The permission of logs in
/var/log/cups/*
are overwritten and set back to original permissions when the CUPS daemon is restarted. - Non-root system administrators are responsible for viewing log files for CUPS. As old log files are rotated and new ones are created, how can we ensure that the non-root users can read. Using
chmod
to make them world-readable only works for the current existing files. - Is there an easy way to change the file permission to 644 and be persistent?
- We have configure logrotate to set permissions on the new log file using "
create 0644
" in the logrotate configuration file, however actual the log file permissions are-rw-------
.
Environment
- Red Hat Enterprise Linux (RHEL) 5, 6, 7, and 8
- Common Unix Printing System (CUPS) 1.3.7, 1.4.2, 1.6.3, and 2.2.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.