1 (edited by aether 2019-10-12 13:13:55)

Topic: [cups] lpadmin group not present in cups-files.conf ?

Hello,

To setup my printer with :

system-config-printer

I've had to enable cupsd service

rc-update add cupsd default

And in :

/etc/cups/cups-files.conf

changed this

[...]

# Default user and group for filters/backends/helper programs; this cannot be
# any user or group that resolves to ID 0 for security reasons...
#User daemon
#Group lp

# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
# This cannot contain the Group value for security reasons...
SystemGroup sys root

[...]

to this :

[...]

# Default user and group for filters/backends/helper programs; this cannot be
# any user or group that resolves to ID 0 for security reasons...
#User daemon
Group lp

# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
# This cannot contain the Group value for security reasons...
SystemGroup sys root lpadmin

[...]

So, uncomment "Group lp" and add "lpadmin" to "SystemGroup"

then add "lp" & "lpadmin" groups to my username until I realize "lpadmin" was not present. So I added it :

groupadd -r lpadmin
gpasswd -a username lpadmin

Now, everything is working fine.

But I wonder why "lpadmin" group is not present by default as available group and also present in "SystemGroup [...] " (in /etc/cups/cups-files.conf ), with other distro, this is usually set by default.

I think it would be great to make it default and add a little reminder in CUPS postpkg install to warn the user that he needs to add his username to the lpadmin group to be able to add a printer.

(If the way I did it is not the correct way, please tell me.)