On 19-10-15 16:38, [email protected] wrote:
Message: 3
Date: Mon, 19 Oct 2015 09:24:44 -0400
From: Hendrik Boom<[email protected]>
To:[email protected]
Subject: Re: [DNG] Printing -- now a permissions problem
Message-ID:<[email protected]>
Content-Type: text/plain; charset=us-ascii
Hand-edited /etc/termcap:
root@notlookedfor:/home/hendrik# cat /etc/printcap
HL3170CDW:\
:mx=0:\
:sd=/var/spool/lpd/hl3170cdw:\
:sh:\
:[email protected]:\
:if=/opt/brother/Printers/hl3170cdw/lpd/filterhl3170cdw:
root@notlookedfor:/home/hendrik#
Now I get
hendrik@notlookedfor:~$ lpr -h -PHL3170CDW
Documents/math/Librationism=1407.3877v3.ps
lpr: cannot open/var/spool/lpd/hl3170cdw/.seq: Permission denied
hendrik@notlookedfor:~$
This happens even if I run as root:
root@notlookedfor:/home/hendrik# lpr -h -PHL3170CDW
Documents/math/Librationism=1407.3877v3.ps
lpr: cannot open/var/spool/lpd/hl3170cdw/.seq: Permission denied
root@notlookedfor:/home/hendrik#
That directory is owned by the lp daemon:
oot@notlookedfor:/home/hendrik# ls -al /var/spool/lpd/hl3170cdwtotal 8
drwx------ 2 daemon lp 4096 Oct 5 14:40 .
drwxr-xr-x 5 root root 4096 Oct 19 09:02 ..
-rw------- 1 daemon lp 0 Oct 5 14:32 acct
-rw------- 1 daemon lp 0 Oct 5 14:32 log
-rw------- 1 daemon lp 0 Oct 5 14:32 status
-rw------- 1 daemon lp 0 Oct 5 14:32 status.pr
root@notlookedfor:/home/hendrik#
and it contains no .seq file. Preumably that fle would be created as needed.
And presumably the permissions are checked in some way that can exclude root.
-- hendrik
When i take a look at the printcap manpage it looks like your lp line
should be:
:rw:[email protected]:\
_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng