after this little change in the ebuild sed -i ..... -e "s:CPSH \"-s /bin/sh\":CPSH \"\":" \ .... a samba-only user (without a valid shell) can't "print" pdfs. Now the samba-only user can print pdfs only changing the shell (usually /bin/false) to something "valid". Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: it doesn't work without a valid shell Expected Results: I would be beautiful print pdfs without a valid shell (for samba-only users). Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 AMD Athlon(TM) XP 2500+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 18:50:39)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 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.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/mail/dspam /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://194.117.143.70" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages/x86/desktop" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.4.11/gentoo-portage" USE="x86 X aac aalib acl acpi acpi4linux aliaschain altcolors amd apache2 apm aredmem arts artswrappersuid atlas atm audiofile avi ba-completion berkdb bitmap-fonts blas bonobo cdb cddb cdparanoia cdr cdrom cjk clamav codecs crypt cups curl devfs26 dga dhcp divx4linux djbfft dlz dv dvd dvdr dvdread edl encode esd ethereal evo extensions f77 faac faad fam fbcon festival ffmpeg fftw flac flood font-server foomaticdb fortran freetts freetype frlargefiles gd gdbm gif gimp gimpprint glut gnokii gnome gphoto2 gpm gps gs gsm gtk gtk2 gtkhtml guild ieee1394 imagemagick imap imlib imlib2 innodb ipv6 irda irmc jabber2 jack java jce jp2 jpeg jpeg2k junit kadu-modules kadu-voice kde kerberos large-domain lcms ldap ldirectord libg++ libwww lirc live lzo lzw lzw-tiff mad maildir maildrop mailwrapper matroska mbrola mdb mew mha mikmod mime mimencode mmap mmx mng motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer msdav mysql mythtv ncursees ncurses network nls nntp ntlm nvidia oav odbc oggvorbis openal opengl opens opie oss pam pcmcia pcre pda pdf pdfkit pdflib perl php png pnp postgres ppds procmail pthreads pwdb python qmail qt quicktime quotes radeon readlineremote roundrobin samba sasl scanner sdl shaper silentdrop slang slp sms snmp softquota speex spel spell sqlite ssl svg svga szip tcltk tcpd tetex tga tiff tinydyndns transcode truetype truetype-fonts type1 type1-fonts unicode usb v4l v4l2 vda vhosts vim vim-with-x virus-scan wmf wsconvert xine xinerama xinetd xml xml2 xmms xosd xpm xv xvid yv12 zaptel zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
If we cannot remove this side effect, we can add a warning at the end of the cups-pdf installation
as I can see, if I change the behaviour to the old one doesn't solve the problem ...probably the su command doesn't support the shell paramater anymore
I confirm this behavior, and if this happens the printer gets paused witch makes impossible to a user with a valid shell to print too until the job from the user, that dont have a valid shell gets deleted. Maybe the new version have a fix, would be great to fix this.
Just tryed the new version and the problem persist
cups-pdf 1.7.0a works fine and fixes the problem
1.7.0a now in portage