Very bizarre:

# ll *_log
-rw-r----- 1 cupsys lpadmin      0 2006-10-31 09:45 access_log
-rw-r--r-- 1 root   lp      227932 2006-10-31 09:45 error_log
-rw-r----- 1 cupsys lpadmin      0 2006-10-31 09:45 page_log

[EMAIL PROTECTED]:/var/log/cups# /etc/init.d/cupsys stop
 * Stopping Common Unix Printing System: cupsd                                  
                                  [ ok ]

# /etc/init.d/cupsys start
 * Starting Common Unix Printing System: cupsd                                  
                                         OK
-rw-r----- 1 cupsys lpadmin 0 2006-10-31 09:46 /var/log/cups/access_log
OK
-rw-r----- 1 cupsys lpadmin 0 2006-10-31 09:46 /var/log/cups/page_log
OK
-rw-r----- 1 cupsys lpadmin 228051 2006-10-31 09:46 /var/log/cups/error_log
                                                                                
                                  [ ok ]
# ll *_log
-rw-r----- 1 cupsys lpadmin      0 2006-10-31 09:46 access_log
-rw-r--r-- 1 root   lp      255154 2006-10-31 09:46 error_log
-rw-r----- 1 cupsys lpadmin      0 2006-10-31 09:46 page_log

Can somebody explain this? The init.d script sets the permissions OK,
and then something fubars them.

Further debugging of the script shows that:
start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" --exec $DAEMON
resets the permissions to 

before start-stop
-rw-r----- 1 cupsys lpadmin 282800 2006-10-31 09:48 /var/log/cups/error_log
after start-stop
-rw-r--r-- 1 root lp 309598 2006-10-31 09:48 /var/log/cups/error_log

The only solution for me is to change the permissions AGAIN after start-
stop-daemon.

-- 
cupsd can't access /var/log/cups/error_log permission denied
https://launchpad.net/bugs/54277

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to