I am using lpadmin to add a printer to the system, Ubuntu 18.04 for this example. The problem is that the file is stored in plaintext in /etc/cups/printers.conf. Is there a way for it to use gnome keyring instead?
The command I use at the moment is:
lpadmin -p printername -v smb://username:password@host/printer -m lsb/usr/filedriver.ppd -E
So after this the password is written to /etc/cups/printers.conf, which I know is also only readable by root. I've been trying to see how to pass the auth part to gnome keyring but found nothing so far.