[Samba] RE: 2.2.x Printing from Win2k-more clues
Van Sickler, Jim
vansickj-eodc at Kaman.com
Thu Jun 13 14:56:04 GMT 2002
> -----Original Message-----
> From: Mak, Ryan [mailto:RMak at wmsgaming.com]
> Sent: Thursday, June 13, 2002 2:38 PM
> To: 'Van Sickler, Jim'
> Subject: RE: 2.2.x Printing from Win2k-more clues
>
>
>
> when i looked into /var/spool/lpd/epson, the gimp-print
> driver, which i've
> told printconf-tui to use for configuring the epson740 to be a local
> printer, is in there. is this the driver used to pipe the job
> from the spool
> to /dev/usb/lp0?? is the following flow correct??
>
> client -> local win2k epson driver -> spool -> gimp-print
> driver -> printer
I think:
client -> local win2k epson driver -> win2k spool -> samba -->
lpd via gimp-print driver -> printer
>
> if it sounds like a temp file creation/rights issue, where do
> you suppose
> this is occuring at, the client or server side??
>
server - printer admins can print, but normal users can't...
try adding @users to the list of printer admins. Look in
printer_driver2.html for an explanation-it mentions conflicts
and what to do about them, in vague terms.
I honestly think I'm leading you down the wrong path here-
anyone else please feel free to jump in here with the
correct info/advice....
Jim
>
> -----Original Message-----
> From: Van Sickler, Jim [mailto:vansickj-eodc at Kaman.com]
> Sent: Thursday, June 13, 2002 4:24 PM
> To: 'Mak, Ryan'
> Cc: Samba-L (E-mail)
> Subject: RE: 2.2.x Printing from Win2k-more clues
>
>
>
>
> > -----Original Message-----
> > From: Mak, Ryan [mailto:RMak at wmsgaming.com]
> > Sent: Thursday, June 13, 2002 11:37 AM
> > To: 'Van Sickler, Jim'
> > Subject: RE: 2.2.x Printing from Win2k-more clues
> >
> >
> > since i have use client driver = no, does that mean the win2k
> > client is trying to access the driver file in my
> > /var/spool/lpd/epson directory which is chown lp.lp??
>
> The driver isn't located there; that's the dir
> lpr is spooling print jobs for the epson. Samba
> would use the /var/spool/samba/epson dir to manage
> jobs spooled to lpr. Win2k is using the PC's driver
> dir's to install into (\winnt\system32\spool\drivers),
> and will prompt you for the driver disks/location.
>
> Print Job: client --> samba --> lpr --> printer
>
> Print Status: printer --> lpr --> samba --> client
>
> > browsed through microsoft's win2k print forums and it
> > described the network print process as calling GDI.exe to
> > access the printer driver...i am somewhat confuse about
> > this...is the driver at the server downloaded or accessed??
>
> Others can address this much better than I...jerry?
>
> I think if it's local (LanMan Printer Port, or TCP/IP)
> the local driver is used. (disable spoolss=yes)
>
> It's registry info is located in HKEY_LOCAL_MACHINE\SYSTEM
> \CurrentControlSet\Control\Print\Providers\LanMan Print
> Services\PortNames\
> \\server\printer
> If it's remote, it's passed through win32spl.dll,
> (disable spoolss=no), the registry section is
> HKEY_CURRENT_USER\Printers\Connections\,,server\printer
>
>
>
> of course, if i set printer admin =
> > rmak, i could
> > print from notepad but crashes when i try to print from apps
> > such as MSWord,
> > Powerpoint, etc.
> >
> ugh...sounds like a temp file creation/rights issue
>
>
> Good luck,
> Jim
> >
> > -----Original Message-----
> > From: Van Sickler, Jim [mailto:vansickj-eodc at Kaman.com]
> > Sent: Thursday, June 13, 2002 12:23 PM
> > To: 'Mak, Ryan'
> > Cc: Samba-L (E-mail)
> > Subject: RE: 2.2.x Printing from Win2k-more clues
> >
> >
> > If you have a [print$] section in your
> > smb.conf, try adding guest ok=yes
> > and see if that fixes the access problem.
> > It did for me, yesterday. I had a problem
> > where every time I tried to get the printer
> > properties, either my Win2k spool service or
> > explorer.exe would crash...others have
> > noted this entry created/fixed problems
> > lately.
> >
> > > -----Original Message-----
> > > From: Mak, Ryan [mailto:RMak at wmsgaming.com]
> > > Sent: Thursday, June 13, 2002 7:19 AM
> > > To: 'Van Sickler, Jim'
> > > Subject: RE: 2.2.x Printing from Win2k-more clues
> > >
> > >
> > >
> > > hi again jim.
> > >
> > > i started from scratch and put in what you've recommended and
> > > found that i
> > > am unable to access my printer share with disable spoolss =
> > > yes and/or use
> > > client driver = yes. another thing i've noticed is a
> > > permission problem
> > > accessing /var/spool/lpd/epson when i chown to daemon.daemon.
> > > i've even set
> > > my login and passsword to the same as the ones on my linux
> > > server. could
> > > this be something related to the fact that i've logged into
> > the local
> > > machine on the win2k client and not a domain controlled
> by the samba
> > > server??
> > >
> > >
> > Maybe-do you have a Unix user that the win2k user can be mapped to
> > in /etc/samba/smbusers? If not, create an account on the Unix box
> > and map that to your win2k user.
> >
> > Do you have "Map to Guest=Bad User" and "guest account=nobody"
> > in smb.conf? I actually have "guest account=smb_nobody". I
> > created a Unix user named "smb_nobody", with no login allowed
> > and no home dir. When I look in my samba logs, smb_nobody shows
> > up making connections. If "allow guest=no", then maybe the
> > initial IPC$ connection to the printer fails, and your
> regular user's
> > connection can't follow. Just a guess on my part...
> > You can set the "log level=3" or higher. Clear the log dir
> > (rm /var/log/samba/log.*), restart samba, then try to print.
> > Look in the log dir, and read through the logs to see if anything
> > shows up about access denied, failures, etc. That might point
> > you in a clearer direction. If/once everything is working, set the
> > log level back to 1.
> >
> > Jim
> >
> > > -----Original Message-----
> > > From: Van Sickler, Jim [mailto:vansickj-eodc at Kaman.com]
> > > Sent: Monday, June 10, 2002 2:11 PM
> > > To: 'Mak, Ryan'
> > > Subject: RE: 2.2.x Printing from Win2k-more clues
> > >
> > >
> > > What are you using for lpr on the Linux box?
> > >
> > > If it's LPRng, try running: checkpc -f -V
> > > to see if LPRng's unhappy,
> > >
> > > testparms |more
> > > to see if samba has errors.
> > >
> > > On my OpenBSD setup, the printcap entry is:
> > >
> > > LPRng, printing raw to the printers (no filters)
> > > .common:cm=Common Settings Go
> > Here:sd=/var/spool/lpd/%P:mx=0:sh:lf=log
> > > hp4plus:cm=HP4Plus by Graphics PC:tc=.common:rm=10.0.0.101:rp=9100
> > >
> > > Samba's smb.conf entry for the same printer (samba-2.2.5pre)
> > >
> > > [Global]
> > > disable spoolss = yes
> > > printing = LPRng
> > > printcap name = /usr/local/etc/printcap
> > > print command = /usr/local/bin/lpr -r -P%p %s
> > > lpq command = /usr/local/bin/lpstat %p
> > > lprm command = /usr/local/bin/lprm -P%p %j
> > > lppause command = /usr/local/sbin/lpc hold %p %j
> > > lpresume command = /usr/local/sbin/lpc release %p %j
> > > queuepause command = /usr/local/sbin/lpc stop -P%p
> > > queueresume command = /usr/local/sbin/lpc start -P%p
> > >
> > > [HP4Plus]
> > > comment = HP4Plus by Graphics PC
> > > path = /var/spool/samba/hp4plus
> > > printable = Yes
> > > printer = hp4plus
> > > use client driver = yes
> > >
> > > -------------------------------------------------
> > > /var/spool/lpd/hp4plus is chown daemon.daemon, chmod 700
> > > files within /var/spool/lpd/hp4plus are chown
> > daemon.daemon, chmod 600
> > > /var/spool/samba/hp4plus is chown root.daemon, chmod 777
> > > files within are same owner/rights
> > >
> > > -------------------------------------------------
> > >
> > > let me know if any of this helps,
> > > Jim
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Mak, Ryan [mailto:RMak at wmsgaming.com]
> > > > Sent: Monday, June 10, 2002 10:35 AM
> > > > To: 'vansickj-eodc at Kaman.com'
> > > > Subject: RE: 2.2.x Printing from Win2k-more clues
> > > >
> > > >
> > > >
> > > > Hi.
> > > >
> > > > I have a problem which I am hoping you could shed some
> light into.
> > > > I could print everything locally on my linux samba server
> > > > machine, the test
> > > > page from the Win2K client and everything through Visual
> > > > Studio on the Win2K
> > > > client...however, when I tried to print through Win2k
> > > > applications such as
> > > > Notepad, MSWord, etc., it fails. Being able to print a test
> > > > page and print
> > > > through Visual studio shows me that it is not an
> > > > authentication or network
> > > > connection issue especially when smb.conf is setup for
> > > > security = share and
> > > > public = yes inside [printers]. As for permission and
> > > > filtering, the default
> > > > /var/spool/samba directory is used and with print jobs
> from these
> > > > applications failing even to make it to the spool directory
> > > > (using print
> > > > command to prove this), i don't think filtering is an issue.
> > > > As far as the
> > > > driver setup on the client, the Win2K client sets up (the add
> > > > printer thing)
> > > > automatically to use, by the way my printer is an Epson Color
> > > > Stylus 740,
> > > > the correct driver and through the samba printer port. Am
> > i missing
> > > > something?? Any feedback into this frustrating matter will
> > > be greatly
> > > > appreciated!!
> > > >
> > > > Regards.
> > > > -Ryan
> > > >
> > > > ----- Original Message ----- From: Van Sickler, Jim
> > > > <mailto:vansickj-eodc at Kaman.com> To: 'Ryan Mak'
> > > > <mailto:ryanmak at ameritech.net> Sent: Monday, June 10, 2002
> > > > 10:59 AM Subject:
> > > > RE: 2.2.x Printing from Win2k-more clues
> > > > I changed those in the lpd.conf file, with no
> effect..I'll try
> > > > printcap.local and see what happens. It's not
> the retention
> > > > of the job, as much as the "Paused" status of
> the job that
> > > > bugs me. I'd like to see it fixed...
> > > > Jim
> > > > -----Original Message-----
> > > > From: Ryan Mak [mailto:ryanmak at ameritech.net]
> > > > Sent: Friday, June 07, 2002 5:36 PM
> > > > To: Van Sickler, Jim
> > > > Subject: Re: 2.2.x Printing from
> Win2k-more clues
> > > >
> > > > See the done_jobs and done_jobs_max_age
> > > > parameters in the
> > > > printcap(5) man page for how to modify how many jobs show as
> > > > "done" in the
> > > > queue, or for how long.
> > > > I added done_jobs=0 to my princap.local file
> > > > and it removed
> > > > the "done" jobs.
> > > > ----- Original Message ----- From: Van
> > > > Sickler, Jim
> > > > <mailto:vansickj-eodc at Kaman.com> To: 'Ryan Mak'
> > > > <mailto:ryanmak at ameritech.net> Sent: Friday, June 07, 2002
> > > > 3:03 PM Subject:
> > > > RE: 2.2.x Printing from Win2k-more clues
> > > > Nope-3.8.12 didn't fix it, and there
> > > > hasn't been any
> > > > traffic on
> > > > the LPRng list for days. I tinkered
> > > > with some of the
> > > > lpd.conf
> > > > settings, but it didn't have any
> > > > effect. The last
> > > > job printed is
> > > > still being left in the lpd
> directory for the
> > > > printer. Why it's
> > > > showing up via Samba as Paused, I have
> > > > no idea. I
> > > > can
> > > > Cancel the Paused job, and it
> goes away (lprm
> > > > deletes it,
> > > > I think).
> > > > Maybe 3.8.13 will fix it....maybe not.
> > > > Jim
> > > >
> > >
> >
>
More information about the samba
mailing list