Tuesday, October 03, 2017

Re: question on proper ownership and permissions of /var/spool and /var/spool/output for printing

Mani thanks, Paul, it worked.

On Tue, Oct 3, 2017 at 8:00 AM, Paul de Weerd <weerd@weirdnet.nl> wrote:

> Check the path in /etc/printcap and make sure it's correctly set. You
> want the spool directory (sd) to point at /var/spool/output/lpd. Note
> that this changed some releases ago.
>
> Permissions there should be:
>
> drwxrwxr-x 2 root daemon 512 Sep 15 16:19 .
> drwxr-xr-x 3 root wheel 512 May 24 14:22 ..
> -rw-rw---x 1 daemon daemon 4 Sep 15 16:18 .seq
> -rw-r----- 1 daemon daemon 32 Sep 15 16:19 lock
> -rw-r--r-- 1 daemon daemon 31 Sep 15 16:19 status
>
> Cheers,
>
> Paul 'WEiRD' de Weerd
>
> On Mon, Oct 02, 2017 at 08:18:21PM +0200, soko.tica wrote:
> | Hello list,
> |
> | Please advise about proper ownership and permissions of /var/spool and
> | /var/spool/output. After every syspatch upgrade I need to set it again to
> | enable printing.
> |
> | Present ownership and permissions after the syspatch upgrade are:
> |
> | Script started on Mon Oct 2 20:10:21 2017
> | $ ls -lh /var/spool/
> | total 16
> | dr-xr-xr-x 5 root wheel 512B Apr 1 2017 ftp
> | drwxrwxr-t 3 root dialer 512B Apr 1 2017 lock
> | drwxr-xr-x 3 root wheel 512B Sep 19 17:54 output
> | drwx--x--x 8 root wheel 512B Oct 2 18:53 smtpd
> | $ ls -lh /var/spool/output/
> | total 12
> | -rw-r----- 1 daemon daemon 27B Sep 19 17:54 lock
> | drwxrwxr-x 2 root daemon 512B Apr 1 2017 lpd
> | -rw-rw---- 1 root daemon 25B Sep 19 17:53 status
> | $ id branislav
> | uid=1001(branislav) gid=1001(branislav) groups=1001(branislav),
> 1(daemon),
> | 5(operator), 9(wsrc), 117(dialer), 553(_saned)
> | $ dmesg
> | OpenBSD 6.1 (GENERIC.MP) #21: Wed Aug 30 08:21:38 CEST 2017
> | robert@syspatch-61-amd64.openbsd.org:/usr/src/sys/arch/
> amd64/compile/
> | GENERIC.MP
> | <sniped>
> | $ ^D
> |
> | Script done on Mon Oct 2 20:10:51 2017
> |
> | Regards,
> |
> | Soko Tica
>
> --
> >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
> +++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
> http://www.weirdnet.nl/
>

No comments:

Post a Comment