I reverted the "/etc/udev/rules.d/40-permissions.rules" file back to:
# Printers and Parallel devices SUBSYSTEM=="printer", GROUP="lp" SUBSYSTEM=="ppdev", GROUP="lp" SUBSYSTEM=="usb", KERNEL=="lp[0-9]*", GROUP="lp"
Afterwards, I was not able to print a test page and received the same error as before in the CUPS web configuration tool:
"Unable to open device file "/dev/lp0": Permission denied"
I then ran the command above:
jschindler@centime:~$ sudo aa-complain cupsd [sudo] password for jschindler: Setting /etc/apparmor.d/usr.sbin.cupsd to complain mode.
In complain mode, I'm still unable to print a test page.
jschindler@centime:~$ cat /var/log/syslog | grep "audit" Jun 3 08:10:49 centime kernel: [ 29.995251] audit: initializing netlink socket (disabled) Jun 3 08:10:49 centime kernel: [ 29.995267] audit(1212498624.236:1): initialized Jun 3 08:10:52 centime kernel: [ 57.754790] audit(1212498652.982:2): type=1502 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5127 profile="/usr/sbin/cupsd" namespace="default"
If you need additional information from me, please let me know.
I reverted the "/etc/udev/ rules.d/ 40-permissions. rules" file back to:
# Printers and Parallel devices ="printer" , GROUP="lp"
SUBSYSTEM=
SUBSYSTEM=="ppdev", GROUP="lp"
SUBSYSTEM=="usb", KERNEL=="lp[0-9]*", GROUP="lp"
Afterwards, I was not able to print a test page and received the same error as before in the CUPS web configuration tool:
"Unable to open device file "/dev/lp0": Permission denied"
I then ran the command above:
jschindler@ centime: ~$ sudo aa-complain cupsd d/usr.sbin. cupsd to complain mode.
[sudo] password for jschindler:
Setting /etc/apparmor.
In complain mode, I'm still unable to print a test page.
jschindler@ centime: ~$ cat /var/log/syslog | grep "audit" 4.236:1) : initialized 2.982:2) : type=1502 operation= "inode_ permission" requested_ mask="a: :" denied_mask="a::" name="/dev/tty" pid=5127 profile= "/usr/sbin/ cupsd" namespace="default"
Jun 3 08:10:49 centime kernel: [ 29.995251] audit: initializing netlink socket (disabled)
Jun 3 08:10:49 centime kernel: [ 29.995267] audit(121249862
Jun 3 08:10:52 centime kernel: [ 57.754790] audit(121249865
If you need additional information from me, please let me know.