[1815642 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

preventing CUPS password prompt

Add Unix groups to CUPS:
/etc/cups/cups-files:
SystemGroup lpadmin root
Set permissions to access the local secret:
chgrp -R lpadmin /run/cups/certs
This directory contains a secret that is read by CUPS utilities like cupsenable. They pass that secret in HTTP Authorization headers to the local HTTP socket when sending command.

Add your user to that group:
usermod -a -G lpadmin myuser

posted on 2018-10-29 15:48 UTC in Code | 0 comments | permalink