Cups uses /var/tmp for storing temp files, but /var/tmp is owned by portage:portage, with permissions 2770/drwxrws---. This makes it impossible to print for users who are not members of the portage group. Reproducible: Always Steps to Reproduce: 1.emerge and install cups 2.log in with an account that is not member of the portage group 3. do echo "Hello there" | lpr Actual Results: I get this error: lpr: error - unable to create temporary file "/var/tmp/42ade3ee6d8bd" - Permission denied Expected Results: I should get 'Hello there' printed on my printer paper. emerge info: portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 7 2005, 08:51:28)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks prelink sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://mirror.pudas.net/gentoo http://mirror.uni-c.dk/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/" LANG="sv_SE" LINGUAS="sv en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X aalib acpi alsa apm avi berkdb bitmap-fonts cdr crypt cups curl directfb dvd dvdread eds emboss encode fam flac foomaticdb fortran gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 ithreads java jpeg kde kdeenablefinal libg++ libwww mad mikmod mmx motif mp3 mpeg nas ncurses nls nptl nptlonly offensive ogg oggvorbis opengl oss pdflib perl png ppds pthreads python qt quicktime readline samba sdl spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xine xml2 xmms xv zlib video_cards_nvidia linguas_sv linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS cups USE flags: zuul niklas # emerge -pv cups These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-print/cups-1.1.23-r1 -debug +nls -pam +samba -slp +ssl 0 kB
It's not problem with cups. /var/tmp should be owned by root:root, permissions rwxrwxrwt Try setting correct ownership, does something revert it to portage:portage?
Hmm, something must have set my /var/tmp to portage:portage a long time ago. Maybe some ebuild screwed up sometime. I know I haven't touched it. Anyway, thanks! Now that I know that it's supposed to be root:root, I can rest easier. That was an easy one to close :)