[Samba] access denied on printing from win2k?

Kristyan Osborne kris at longhill.brighton-hove.sch.uk
Thu Feb 28 09:18:13 GMT 2002

On our dedicated samba print server I just put on 2.0.9 as I found that
works fine. I had a few problems with 2.2.2 and I didn't have time to


-----Original Message-----
From: Peter Benie [mailto:Peter.Benie at mvhi.com]
Sent: 28 February 2002 12:37
To: samba at lists.samba.org
Subject: Re: [Samba] access denied on printing from win2k?

Remco van Essen writes ("[Samba] access denied on printing from
> I guess this snippet from the log has something to do with it:
> "
> [2002/02/22 15:06:15, 0] printing/printing.c:print_job_start(926)
>   print_job_start: insufficient permissions to open spool file
> /var/spool/lpd/printer01/smbprn.s9gmRw.

We've also had this problem in samba 2.2.1 and 2.2.2.

Most of the time, print jobs run okay, however, some of the time, the
job spools as the 'nobody' user (perms 0600) but the print command is
run as the correct (authenticated) user. Since that user can't read
the spool file, printing fails.

I believe that the opposite happens too - the job spools as the
correct user, but the print command is run as the 'nobody' user. Again
this causes a permissions error.

The users never reported any similar problems while we were running
samba 2.0.

Our setup is:

  Samba on Red Hat Linux 6.2 as PDC. 
  Printer drivers installed locally on the NT4 workstations.
  All NT4 workstations are members of the domain.
  All users have an account on the samba server.

Here are the relevant sections from the smb.conf:

	comment = All Printers
	path = /var/spool/samba
	browseable = no
	printable = yes
	create mask = 0700

   comment = PPR prototype print share
   print command = /usr/ppr/bin/ppr -d %p -e responder -w log -m samba
-r %m-%I --responder-options os=%a -X %m at samba -f %U -U %s &
   lpq command = /usr/ppr/bin/ppop lpq %p
   lprm command = /usr/ppr/bin/ppop -X %m at samba cancel %p-%j
   lppause command = /usr/ppr/bin/ppop -X %m at samba hold %p-%j
   lpresume command = /usr/ppr/bin/ppop -X %m at samba release %p-%j

   queuepause command = /usr/ppr/bin/ppop stop %p
   queueresume command = /usr/ppr/bin/ppop start %p

   ; The line below must go in [global] if Samba older than 1.9.18.
   printing = bsd

   browseable = no
   printer = null
   printable = yes
   writable = no
   create mode = 0700
   path = /var/spool/ppr/sambaspool
   printer driver location = \\%h\pprwin95

  comment = 
  printer = hplj4
  printer driver = HP LaserJet 4P/4MP PS 600 dpi
  copy = pprproto
  browseable = yes


To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list