Permission Denied Error with rastertostar

John Harding jdharding at comcast.net
Sat Jan 26 15:51:33 PST 2008


I'm trying to get a Star TSP100 to print.  It's the only printer installed.

I've read through all the posts I can find on similar issues and I now know enough to be dangerous - but not enough to fix my problem...

OS: Fedora Core 6
CUPS: 1.2.12

cupsd.conf fragment:

LogLevel debug
# User lp        -- this is what I added to try and solve the problem
# Group root     -- this is what I added to try and solve the problem
SystemGroup sys root  -- this was the original state of the config


error_log fragment:

D [26/Jan/2008:18:41:38 -0500] [Job 30] argv[0]="TSP143_(STR_T-001)"
D [26/Jan/2008:18:41:38 -0500] [Job 30] argv[1]="30"
D [26/Jan/2008:18:41:38 -0500] [Job 30] argv[2]="root"
D [26/Jan/2008:18:41:38 -0500] [Job 30] argv[3]=".tcshrc"
D [26/Jan/2008:18:41:38 -0500] [Job 30] argv[4]="1"
D [26/Jan/2008:18:41:38 -0500] [Job 30] argv[5]="job-uuid=urn:uuid:82f367e7-4aff-30e4-4599-97bdc20757b8"
D [26/Jan/2008:18:41:38 -0500] [Job 30] argv[6]="/var/spool/cups/d00030-001"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[2]="CUPS_DOCROOT=/usr/share/doc/cups-1.2.12"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[9]="SERVER_ADMIN=root at dexteraw.mrs"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[10]="SOFTWARE=CUPS/1.2.12"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[12]="USER=root"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[13]="CUPS_SERVER=/var/run/cups/cups.sock"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[14]="CUPS_ENCRYPTION=IfRequested"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[15]="IPP_PORT=631"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[16]="CHARSET=utf-8"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[17]="LANG=en_US"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[18]="PPD=/etc/cups/ppd/TSP143_(STR_T-001).ppd"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[19]="RIP_MAX_CACHE=8m"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[20]="CONTENT_TYPE=text/plain"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[21]="DEVICE_URI=usb://Star/TSP143%20(STR_T-001)"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[22]="PRINTER=TSP143_(STR_T-001)"
D [26/Jan/2008:18:41:38 -0500] [Job 30] envp[23]="FINAL_CONTENT_TYPE=printer/TSP143_(STR_T-001)"
I [26/Jan/2008:18:41:38 -0500] Started filter /usr/lib/cups/filter/texttopaps (PID 17318) for job 30.
I [26/Jan/2008:18:41:38 -0500] Started filter /usr/lib/cups/filter/pstops (PID 17319) for job 30.
I [26/Jan/2008:18:41:38 -0500] Started filter /usr/lib/cups/filter/pstoraster (PID 17320) for job 30.
I [26/Jan/2008:18:41:38 -0500] Started filter /usr/lib/cups/filter/rastertostar (PID 17322) for job 30.
I [26/Jan/2008:18:41:38 -0500] Started backend /usr/lib/cups/backend/usb (PID 17323) for job 30.
...
E [26/Jan/2008:18:41:38 -0500] PID 17322 (/usr/lib/cups/filter/rastertostar) stopped with status 22!
...
D [26/Jan/2008:18:41:38 -0500] [Job 30] /usr/lib/cups/filter/rastertostar: Permission denied

Permissions on rastertostar:
[root at dexteraw cups]# ll /usr/lib/cups/filter/rastertostar
-rwxr-xr-x 1 root root 25622 Jan 26 15:04 /usr/lib/cups/filter/rastertostar

Permissions on spool directory:
[root at dexteraw cups]# ls -lad /var/spool
drwxr-xr-x 13 root root 4096 Jan  2 15:09 /var/spool
[root at dexteraw cups]# ls -lad /var/spool/cups
drwx--x--- 3 root lp 4096 Jan 26 18:41 /var/spool/cups
[root at dexteraw cups]# ls -lad /var/spool/cups/tmp
drwxrwx--T 2 root lp 4096 Jan 26 18:16 /var/spool/cups/tmp

I noticed that the cups spool directories have a user of lp so I tried adding that line to my cupsd.conf (and restarting) - still fails in the same way.

Help?

Thanks,
John H.




More information about the cups mailing list