Samba Printing Problems
Justin Bennett
Justin.Bennett at dynabrade.com
Wed Nov 6 09:40:29 EST 2002
Hey let me know if you get it to do color. Everything I print is in black
and white. I'll prob play with it a little.
Justin Bennett said:
> Cool, have fun! It's always the little things that get ya.
>
> Jonathan Younker said:
>> Thanks, Justin,
>> It turns out that I messed up the directory permissions on
>> /shr/pdfdropbox. It's always the simple things that have me pulling
>> out my hair for hours. Thanks for the tip about the username; that
>> should help users identify their jobs.
>> Jonathan.
>>
>> At 08:54 AM 11/6/2002 -0500, you wrote:
>>>I basically used the standard smb.conf config. I changed the
>>> printscript a little, though it was working before. I added a second
>>> command line variable to add the username to the file and the date
>>> this is what I have:
>>>
>>>[pdf]
>>> path = /tmp
>>> printable = yes
>>> guest ok = yes
>>> print command = /usr/bin/printpdf %s %u
>>>
>>> ; There is no need to support listing or removing print jobs, ;
>>> since the server begins to process them as soon as they arrive. ; So,
>>> we set the lpq (list queued jobs) and lprm (remove jobs in
>>> queue) ; commands to be empty.
>>> lpq command =
>>> lprm command =
>>>
>>>
>>>Printpdf:
>>>
>>>#!/bin/sh
>>>
>>>DATE=`date +%b%d-%H%M%S`
>>>
>>># Directory in which to place the output
>>># Be sure this directory exists and is writable by the user that Samba
>>> # is running as (for example, the nobody user)
>>>OUTDIR=/export/home/pdfs
>>>
>>>/usr/bin/ps2pdf13 $1 $OUTDIR/$DATE.temp
>>>mv $OUTDIR/$DATE.temp $OUTDIR/$2-$DATE.pdf
>>>chmod 660 $OUTDIR/$2-$DATE.pdf
>>>rm $1
>>>
>>>
>>>
>>>
>>>Notice $2 is passed as %u (the username) and I also added a line to
>>> change the permission on the file thats created, nothing complex.
>>> Make SURE though that the printpdf file is EXECUTABLE.
>>>chmod a+x /usr/bin/printpdf
>>>
>>>Justin
>>>
>>>
>>>Jonathan Younker said:
>>> > Unfortunately, the only clients I can play with are Win2K. Did you
>>> use the smb.conf configuration they suggested, or did you have to
>>> tweak it?
>>> >
>>> > At 03:43 PM 11/5/2002 -0500, you wrote:
>>> >>I just set it up, 'works for me' I love giving that answer to some
>>> >> people here, anyways :) The Access Denied Unable to Connect, is
>>> normal W2k always says that with samba (my experience anyways) even
>>> if its working ok. Does it print from other clients just not 2k?
>>> >>
>>> >>
>>> >>Jonathan Younker said:
>>> >> > Hi all,
>>> >> > I've been trying to set up a PDF converter (as seen at
>>> >> > http://www.linuxgazette.com/issue72/bright.html), which uses
>>> Samba
>>> >> and Ghostscript to 'print to PDF.' Everything set up fine, and my
>>> conversion script works fine, but I can't print though the Samba
>>> printer from Win2kPro. Nothing is coming up in the log files, but
>>> the file isn't getting sent to the server, either. When I check the
>>> Win Printer Status, the title bar reads "access denied, unable to
>>> connect.' Here's my smb.conf:
>>> >> >
>>> >> > [global]
>>> >> > netbios name = Iris
>>> >> > workgroup = Library
>>> >> > server string = IRIS
>>> >> > security = user
>>> >> > log file = /var/log/samba-log.%m
>>> >> > lock directory = /var/lock/samba
>>> >> > share modes = yes
>>> >> > encrypt passwords = yes
>>> >> > smb passwd file = /etc/smbpasswd
>>> >> > hosts allow = 139.57.128.116
>>> >> > invalid users = root samba
>>> >> > domain master = no
>>> >> > local master = no
>>> >> > preferred master = no
>>> >> > os level = 10
>>> >> >
>>> >> > [shr]
>>> >> > path = /shr
>>> >> > browseable = yes
>>> >> > writeable = yes
>>> >> > guest ok = yes
>>> >> > force user = nobody
>>> >> >
>>> >> > [pdf]
>>> >> > path = /tmp
>>> >> > printable = yes
>>> >> > guest ok = yes
>>> >> > use client driver = yes
>>> >> > print command = /usr/bin/printpdf %s
>>> >> > lpq command =
>>> >> > lprm command =
>>> >> >
>>> >> > Any ideas?
>>> >> > Thanks,
>>> >> > Jonathan Younker
>>> >> >
>>> >> >
>>> >> > --
>>> >> > This message has been scanned for viruses and
>>> >> > dangerous content by Dynabrade using Mailscanner,
>>> >> > and is believed to be clean.
>>> >>
>>> >>
>>> >>--
>>> >>-------------------------------------------
>>> >>Justin Bennett
>>> >>Red Hat (Linux) Certified Engineer
>>> >>Network Administrator
>>> >>Dynabrade Inc.
>>> >>8989 Sheridan Dr
>>> >>Clarence, NY 14031
>>> >>716-631-0100 ext 215
>>> >
>>> > This message has been scanned for viruses and
>>> > dangerous content by Dynabrade using Mailscanner,
>>> > and is believed to be clean.
>>>
>>>
>>>--
>>>-------------------------------------------
>>>Justin Bennett
>>>Red Hat (Linux) Certified Engineer
>>>Network Administrator
>>>Dynabrade Inc.
>>>8989 Sheridan Dr
>>>Clarence, NY 14031
>>>716-631-0100 ext 215
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by Dynabrade using Mailscanner,
>> and is believed to be clean.
>
>
> --
> -------------------------------------------
> Justin Bennett
> Red Hat (Linux) Certified Engineer
> Network Administrator
> Dynabrade Inc.
> 8989 Sheridan Dr
> Clarence, NY 14031
> 716-631-0100 ext 215
--
-------------------------------------------
Justin Bennett
Red Hat (Linux) Certified Engineer
Network Administrator
Dynabrade Inc.
8989 Sheridan Dr
Clarence, NY 14031
716-631-0100 ext 215
More information about the nflug
mailing list