For me strange things happen:
----------------------------------------------------------------------------
[EMAIL PROTECTED]:~$ ls -l /var/log/cups/error_log
-rw-r--r-- 1 root lp 1648147 2006-10-13 10:24 /var/log/cups/error_log
[EMAIL PROTECTED]:~$ sudo /etc/init.d/cupsys stop
* Stopping Common Unix Printing System: cupsd [ ok ]
[EMAIL PROTECTED]:~$ ls -l /var/log/cups/error_log
-rw-r--r-- 1 cupsys lp 1638329 2006-10-13 10:24 /var/log/cups/error_log
[EMAIL PROTECTED]:~$ sudo sh -ex /etc/init.d/cupsys start 2>&1|grep var/log
+ [ -e /var/log/cups/access_log ]
+ chmod 640 /var/log/cups/access_log
+ chown cupsys:lpadmin /var/log/cups/access_log
+ [ -e /var/log/cups/page_log ]
+ chmod 640 /var/log/cups/page_log
+ chown cupsys:lpadmin /var/log/cups/page_log
+ [ -e /var/log/cups/error_log ]
+ chmod 640 /var/log/cups/error_log
+ chown cupsys:lpadmin /var/log/cups/error_log
[EMAIL PROTECTED]:~$ ls -l /var/log/cups/error_log
-rw-r--r-- 1 root lp 1648147 2006-10-13 10:24 /var/log/cups/error_log
[EMAIL PROTECTED]:~$ ls -l /var/log/cups/error_log
-rw-r--r-- 1 root lp 1648147 2006-10-13 10:24 /var/log/cups/error_log
[EMAIL PROTECTED]:~$ ls -l /var/log/cups/error_log
-rw-r--r-- 1 root lp 1648147 2006-10-13 10:24 /var/log/cups/error_log
[EMAIL PROTECTED]:~$ ls -l /var/log/cups/error_log
-rw-r--r-- 1 root lp 1648147 2006-10-13 10:24 /var/log/cups/error_log
[EMAIL PROTECTED]:~$
----------------------------------------------------------------------------
The commands for doing the ownership/permission change are executed, but
immediately afterwards the ownerships are back to the wrong values. When
is the CUPS daemon started? Before or after correcting the ownerships?
Perhaps the CUPS daemon sets them to root.lp before it drops its
privileges.
Perhaps we need to patch the CUPS daemon to get the right thing.
I have tested on current Edgy (cupsys 1.2.4-2ubuntu3).
** Changed in: cupsys (Ubuntu)
Status: Fix Released => Confirmed
Target: None => ubuntu-6.10
--
cupsd can't access /var/log/cups/error_log permission denied
https://launchpad.net/bugs/54277
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs