Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40195 - xprint failes due to too restrict permissions
Summary: xprint failes due to too restrict permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High major
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-02 09:40 UTC by Thomas Scheffler
Modified: 2004-02-04 04:36 UTC (History)
0 users

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 Thomas Scheffler 2004-02-02 09:40:27 UTC
After installing xprint 008-r2 it says that a user have to add
export XPSERVERLIST="`/bin/sh /etc/init.d/xprint get_xpserverlist`"
to his .xinitrc but the xprint script requires write access to the directory
/var/lib/init.d or else it will fail.




Reproducible: Always
Steps to Reproduce:
$ /etc/init.d/xprint get_xpserverlist

Actual Results:  
/sbin/runscript.sh: line 386: /var/lib/init.d/xprint-18399: Permission denied
 * ERROR:  "/etc/init.d/xprint" has syntax errors in it; not executing...


Expected Results:  
$ /etc/init.d/xprint get_xpserverlist
:64

I solved the problem for me this way:
chown root:users /var/lib/init.d
chmod 775 /var/lib/init.d


# emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://darkstar.ist.utl.pt/pub/gentoo/
http://ftp.gentoo.skynet.be/pub/gentoo/ http://gentoo.mirror.sdv.fr
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="S3TC X aalib acl acpi acpi4linux alsa also apache2 arts autofs avi berkdb
bonobo cdr clanJavaScript clanVoice crypt cups dga directfb dvd encode esd evo
fbcon foomaticdb gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile hbci imap imlib
imlib2 ipv6 java javascript jpeg kde ldap libg++ libwww lirc mad maildir
memlimit mikmod mmx motif mozcalendar mozilla mozp3p mozsvg mozxmlterm mpeg
mysql ncurses nls nptl oggvorbis opengl oss pam pcmcia pdflib perl pic png pnp
ppds python qt quicktime readline samba sdl sis slang spell sse ssl svga tcltk
tcpd tetex tiff transcode truetype unicode usb x86 xinerama xml xml2 xmms xv
xvid zlib"
Comment 1 Thomas Scheffler 2004-02-02 22:10:02 UTC
export XPSERVERLIST="`/bin/sh /etc/init.d/xprint get_xpserverlist`" also won't work it should be

export XPSERVERLIST="`/bin/sh /usr/sbin/xprint get_xpserverlist`"
or
export XPSERVERLIST="`/usr/sbin/xprint get_xpserverlist`"
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-04 04:36:47 UTC
thx for pointing that out, fixed :)