Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137795 - cups 1.2.1-r1: cupsd doesn't honor Group config setting
Summary: cups 1.2.1-r1: cupsd doesn't honor Group config setting
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 208958 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-23 21:47 UTC by Michael Hill
Modified: 2008-02-05 08:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hill 2006-06-23 21:47:26 UTC
# emerge --info
Portage 2.1.1_pre1-r1 (default-linux/x86/2006.0, gcc-4.1.1/hardened, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache digest distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac acpi alsa apache2 apm audiofile avi bash-completion bcmath berkdb bitmap-fonts bzip2 bzlib cairo calendar caps cli crypt cups dbase dbx dedicated dga dlloader doc dri dvd dvdr emboss encode expat fbcon fftw firefox flac flatfile font-server foomaticdb gd gecko-sdk gif ginac gnutls gpgme gpm gs gtk gtk2 hardened hardenedphp imlib inifile isdnlog jpeg jpeg2k lcms libwww logrotate logwatch mbox memlimit mikmod milter mime mmap mmx mp3 mpeg mpi mpm-prefork mysql ncurses no-suexec nocardbus nocd nomotif nptl nptlonly nsplugin ogg opengl oss pam pcntl pcre pda pdflib perl php pie plotutils png posix ppds pppd python qt quicktime readline real reflection rtsp samba sdl server session shared sharedmem simplexml skins sndfile sockets spell spl sse ssl svg sysvipc tcltk tcpd threads tidy tiff truetype truetype-fonts type1-fonts udev ups usb userlocales vhosts videos vorbis win32codecs wv wxgtk1 wxwindows xine xml xmms xorg xpm xprint xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_vga video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

# ps -p8619 -o uid,gid,pid,ppid,comm
  UID   GID   PID  PPID COMMAND
    4 65534  8619  8576 parallel
# ps -p8576 -o uid,gid,pid,ppid,comm
  UID   GID   PID  PPID COMMAND
    0     0  8576     1 cupsd
# id lp
uid=4(lp) gid=7(lp) groups=7(lp)
# egrep '^(User|Group)' /etc/cups/cupsd.conf
User lp
Group lp
# ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 Jun 10 19:33 /dev/lp0


(N.B., I just emerged gcc-4.1.1 but haven't built anything with it yet.  Everything recent was built with 3.4.6 .)

CUPS printing has been working without problems up until about a week or two ago.  I don't know the last time I printed something, as I don't print all that often, but it was in the last couple of weeks.  I have a printer connected to the parallel port.  The perms on lp0 (660) are what they should be according to the udev config; that hasn't changed.

The error, with debug turned on in cupsd.conf, is:

Unable to open parallel port device file "/dev/lp0": Permission denied

The reason, as demonstrated above, is that /dev/lp0 is writable by group 'lp', but the 'parallel' process is running with group 'nobody' despite the Group setting in cupsd.conf .  I checked when I last emerged cups...  it was on June 16th, just one week ago.  So it appears to me that the new version somehow broke printing.  The previous version I upgraded from was cups-1.1.23-r7 .  I downgraded to that just now, and printing again works.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-18 15:45:11 UTC
As per man cups.conf the setting has been changed to:

       SystemGroup group-name [group-name ...]
            Specifies the group(s) to use for System class authentication.

Please use this setting and probably follow the cups-1.2 upgrade guide when upating. It tells to start configuring from scratch after the upgrade.

Thanks for reporting this, but I do not know what I should fix here. Please reopen when you want more.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-05 08:56:26 UTC
*** Bug 208958 has been marked as a duplicate of this bug. ***