unable to open print file - Permission denied

Anonymous anonymous at easysw.com
Thu Sep 9 14:26:34 PDT 2004


Same problem with cups-1.1.21rc2. I have no idea what to do to fix this. It doesnt matter what user is set with --with-cups-user, and changing permissions on /usr/var/spool/cups does nothing. I am at a loss as to how to fix this, does anyone have any ideas?

Rick Hansen



Florian Effenberger wrote:
> Hello there,
>
> I have just compiled CUPS 1.1.20 with the following configure parameters:
>
> /configure --prefix=/usr/local/cups --with-cups-user=cups --with-cups-group=cups --with-docdir=/usr/local/cups/docdir --with-logdir=/usr/local/cups/logdir --with-rcdir=/usr/local/cups/rcdir --enable-ssl
>
> The cups user has been created with adduser --system --no-create-home --group cups.
>
> I can set up printers just fine, however, as soon as I print out a test page, I get
>
> "unable to open print file "/usr/local/cups/var/spool/cups/d00001-001" - Permission denied"
>
> I have also tried to leave out --with-cups-user and --with-cups-group completely, that didn't help as well. Even setting chmod 777 on /usr/local/cups/var/spool/cups doesn't help. I want to print via LPR to an external print server, which works fine when running as root.
>
> Additionally, I receive an "server-internal-error" when going into the printers PPD configuration page, except when the server is run as root.
>
> The permissions of the spool directory change the group according to my setting in cupsd.conf, however, the user is always "root" and I guess that's the culprit. This one should be changed to the user running CUPS as well as otherwise CUPS cannot write into that directory.
>
> What's up? I think I followed all of the configuration items, but I cannot find out what's wrong...
>
> Thanks a lot!
> Florian





More information about the cups mailing list