Summary: | Gentoo Printing Guide- net-print/cups does not require users in lp group to be able to print | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fab <netbox253> |
Component: | Current packages | Assignee: | Printing Team <printing> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | billie, pacho |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=470178 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Fab
2011-03-14 11:45:26 UTC
So all users can print, even when they're not in the lp group, but still, not all are lpadmin? Could be a security bug, assigning to printing@ for now... Right now I dont see anything in the cups makefiles that would change ownership or permission of these binaries. So, it seems to be desired behaviour. (Which makes senes since IPP does not require setuid anymore.) However, will try to get confirmation from upstream. The permissions are the same on Debian, OpenSuSE, and SLES. So this is the desired behaviour. The docs need fixing. The lp* utilities are indeed executable by any user. However the cups configuration files from /etc/cups can only be changed by users who are member of the lp group. So it seems that everybody is allowed to print but only root and members of the lp group can make configuration changes. If this is true the docs need to be reworded in that regard. (In reply to comment #4) > However the cups configuration files from /etc/cups can only be > changed by users who are member of the lp group. Not on my system. > $ ls -l /etc/cups/ > total 64 > -rw------- 1 root lp 128 8 sept. 2011 classes.conf > -rw------- 1 root lp 128 16 juil. 2011 classes.conf.O > -rw-r--r-- 1 root root 35 9 févr. 09:29 client.conf > -rw-r----- 1 root lp 2938 8 sept. 2011 cupsd.conf > -rw-r----- 1 root lp 4144 2 juil. 2011 cupsd.conf.O > -rw-r----- 1 root lp 4144 9 févr. 09:29 cupsd.conf.default > drwxr-xr-x 2 root root 4096 9 févr. 09:30 interfaces > drwxr-xr-x 2 root lp 4096 9 févr. 09:30 ppd > -rw------- 1 root lp 619 27 avril 09:52 printers.conf > -rw------- 1 root lp 656 18 avril 08:46 printers.conf.O > -rw-r----- 1 root lp 186 9 févr. 09:29 snmp.conf > drwx------ 2 root lp 4096 9 févr. 09:30 ssl > -rw-r----- 1 root lp 110 17 sept. 2011 subscriptions.conf > -rw-r----- 1 root lp 333 17 sept. 2011 subscriptions.conf.O (In reply to comment #5) > (In reply to comment #4) > > However the cups configuration files from /etc/cups can only be > > changed by users who are member of the lp group. > > Not on my system. > > > $ ls -l /etc/cups/ > > total 64 > > -rw------- 1 root lp 128 8 sept. 2011 classes.conf > > -rw------- 1 root lp 128 16 juil. 2011 classes.conf.O > > -rw-r--r-- 1 root root 35 9 févr. 09:29 client.conf > > -rw-r----- 1 root lp 2938 8 sept. 2011 cupsd.conf > > -rw-r----- 1 root lp 4144 2 juil. 2011 cupsd.conf.O > > -rw-r----- 1 root lp 4144 9 févr. 09:29 cupsd.conf.default > > drwxr-xr-x 2 root root 4096 9 févr. 09:30 interfaces > > drwxr-xr-x 2 root lp 4096 9 févr. 09:30 ppd > > -rw------- 1 root lp 619 27 avril 09:52 printers.conf > > -rw------- 1 root lp 656 18 avril 08:46 printers.conf.O > > -rw-r----- 1 root lp 186 9 févr. 09:29 snmp.conf > > drwx------ 2 root lp 4096 9 févr. 09:30 ssl > > -rw-r----- 1 root lp 110 17 sept. 2011 subscriptions.conf > > -rw-r----- 1 root lp 333 17 sept. 2011 subscriptions.conf.O Sorry I meant accessed. So it looks like the lp group does not make much sense, but upstream should be contacted, maybe there are reasons for the current permissions. I took a look at this again and made some tests as normal user who is in the "lpadmin" group. Although the the cups configuration files belong to the lp group which has only read access, I was able to add/remove printers and change settings via the cups web interface. I was also able to add/remove printers using the hp-setup tool from hplip. The cups ebuild adds the lp and the lpadmin group and cupsd.conf is configured by default to use lpadmin as @SYSTEM account. So anyone who needs to manage the printers i.e. add or modify them needs to be in the lpadmin group and and everybody who just needs to print is not required to be a member of any special groups. You are only required to be root if you directly edit/access the cups configuration files with a text editor. What role the lp group plays I don't know. I already added/updated this at the hplip wiki page [1]. [1] https://wiki.gentoo.org/wiki/HPLIP#Installation |