:: [DNG] Printing -- now a permission…
Top Page
Delete this message
Reply to this message
Author: info at smallinnovations.nl
Date:  
To: dng
Subject: [DNG] Printing -- now a permissions problem
On 19-10-15 16:38, dng-request@??? wrote:
> Message: 3
> Date: Mon, 19 Oct 2015 09:24:44 -0400
> From: Hendrik Boom<hendrik@???>
> To:dng@???
> Subject: Re: [DNG] Printing -- now a permissions problem
> Message-ID:<20151019132444.GA21247@???>
> 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:\
>          :lp=515@172.25.1.122:\
>          :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:lp=515@172.25.1.122:\