Hi, I'm running samba 2.2.1a (RPM install) on RedHat 7.2 I've connected a Canon LBP-8 IV laserprinter to the network via a HP Jetdirect box. I've configured the printer within linux and printing goes fine. Now I'm trying to access the printer via samba from my win2k clients. Now, the problem is: When I'm trying to print to the printer (e.g. a testpage) I get the message "Test page failed to print. <SNIP> Unable to create a print job." Also, it takes a while before the printer gets initialized. 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. " This is (part of) my smb.conf [printers] comment = All Printers path = /var/spool/samba browseable = no printable = yes public = yes writable = no create mode = 0700 guest ok = yes [printer01] path = /var/spool/lpd/printer01 printer name = printer01 writable = yes public = yes printable = yes guest ok = yes I guess I need to set the correct permissions, but I don't know how (and to what?). Can anybody help? Best Regard, Remco
Remco van Essen writes ("[Samba] access denied on printing from
win2k?"):> 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:
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
create mask = 0700
[pprproto]
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@samba -f %U -U %s &
lpq command = /usr/ppr/bin/ppop lpq %p
lprm command = /usr/ppr/bin/ppop -X %m@samba cancel %p-%j
lppause command = /usr/ppr/bin/ppop -X %m@samba hold %p-%j
lpresume command = /usr/ppr/bin/ppop -X %m@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
[hplj4]
comment =
printer = hplj4
printer driver = HP LaserJet 4P/4MP PS 600 dpi
copy = pprproto
browseable = yes
Peter
Hi, I had the same problem: 2.2.1a (RPM install) on RedHat 7.2. Using Win2k clients. I solved it adding in global section: printer admin = @users bye. --- Remco van Essen <lijst@scoutline.com> wrote:> Hi, > > I'm running samba 2.2.1a (RPM install) on RedHat 7.2 > I've connected a Canon LBP-8 IV laserprinter to the > network via a HP > Jetdirect box. > I've configured the printer within linux and > printing goes fine. > > Now I'm trying to access the printer via samba from > my win2k clients. Now, > the problem is: When I'm trying to print to the > printer (e.g. a testpage) I > get the message "Test page failed to print. <SNIP> > Unable to create a print > job." > Also, it takes a while before the printer gets > initialized. > > 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. > " > > This is (part of) my smb.conf > > [printers] > comment = All Printers > path = /var/spool/samba > browseable = no > printable = yes > public = yes > writable = no > create mode = 0700 > guest ok = yes > [printer01] > path = /var/spool/lpd/printer01 > printer name = printer01 > writable = yes > public = yes > printable = yes > guest ok = yes > > > I guess I need to set the correct permissions, but I > don't know how (and to > what?). > Can anybody help? > > Best Regard, > > Remco > > > -- > To unsubscribe from this list go to the following > URL and read the > instructions:http://lists.samba.org/mailman/listinfo/samba __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com
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
play.
Cheers
-----Original Message-----
From: Peter Benie [mailto:Peter.Benie@mvhi.com]
Sent: 28 February 2002 12:37
To: samba@lists.samba.org
Subject: Re: [Samba] access denied on printing from win2k?
Remco van Essen writes ("[Samba] access denied on printing from
win2k?"):> 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:
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
create mask = 0700
[pprproto]
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@samba -f %U -U %s &
lpq command = /usr/ppr/bin/ppop lpq %p
lprm command = /usr/ppr/bin/ppop -X %m@samba cancel %p-%j
lppause command = /usr/ppr/bin/ppop -X %m@samba hold %p-%j
lpresume command = /usr/ppr/bin/ppop -X %m@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
[hplj4]
comment =
printer = hplj4
printer driver = HP LaserJet 4P/4MP PS 600 dpi
copy = pprproto
browseable = yes
Peter
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba