I recently set up samba-2.2.3a on FreeBSD 4.5-RELEASE. I'm having troubles getting printing to work. I have LPRng-3.76 installed, and it works just fine using the command line tools. When I print from a windows client over smb, however, I can see the job go into the spool directory, but then it magically vanishes, with nothing in any log files. Has anyone experienced this type of strange behavior? I'll include some relevant lines from smb.conf below. Thanks in advance for any help. -Justin. ---smb.conf--- load printers = yes printcap name = /usr/local/etc/printcap printing = lprng [printers] comment = All Printers path = /var/spool/samba browseable = yes guest ok = no writable = no printable = yes print command = /usr/local/bin/lpr -P%p -r %s lpq command = /usr/local/bin/lpq -P%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 -P%p stop queueresume command = /usr/local/sbin/lpc -P%p start use client driver = yes __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/
Have you checked your lprng spool directory? /var/spool/ldp/%p ? Maybe your jobs are sitting there. This is often a print filter problem. Depending on the printer, when you send an improperly formatted print job, it may have fits or it may just ignore it. Have you checked the log file in the lprng spool directory? When you say command line tools, do you mean lpr or do you mean: smbclient -L etc. Joel On Wed, Mar 06, 2002 at 02:57:51PM -0800, Justin Wood wrote:> I recently set up samba-2.2.3a on FreeBSD 4.5-RELEASE. I'm having > troubles getting printing to work. I have LPRng-3.76 installed, and it > works just fine using the command line tools. When I print from a > windows client over smb, however, I can see the job go into the spool > directory, but then it magically vanishes, with nothing in any log > files. Has anyone experienced this type of strange behavior? > > print command = /usr/local/bin/lpr -P%p -r %s <---NO MAGIC. YOU ERASE IT
I actually checked this too. I have rwxrwxrwt perms on the spool directory. -Justin. --- Alan Buxey <almb@mssl.ucl.ac.uk> wrote:> hi, > > > I just checked the lprng spool directory. The jobs aren't in > there, > > and there is no relevant information in the log files. > > > > Sorry, I meant command line tools like lpr, not smbclient. > > > this problem is almost always due to samba spool permission problems. > > i cant recall which log file to look at...perhaps /var/log/messages.. > but you need to make sure you have a spool directory that SAMBA can > write > too. > > iirc the default is /var/spool/samba > > make the directory and make it -rwxrwxrwx > > alan__________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/
I use Samba 2.2.3a and lprng, but I do not enforce any sort of security. The print server is a standalone guest-ready system with a shared temp filespace. I have used to auto-upload method of drivers for Win2K/XP, but can't get auto-upload working for Win98. Regards, Alan B. Moote Systems Administrator MARK IV Industries tel: 905.624.7908 fax: 905.625.6197 |---------+----------------------------> | | Justin Wood | | | <justin@justinwoo| | | d.com> | | | Sent by: | | | samba-admin@lists| | | .samba.org | | | | | | | | | 03/14/2002 11:28 | | | AM | | | Please respond to| | | justin | | | | |---------+----------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: samba@lists.samba.org | | cc: | | Subject: Re: [Samba] printing with lprng | >------------------------------------------------------------------------------------------------------------------------------| Is anyone else out there using samba-2.2.3a and lprng? If so, were there any weird tweaks you had to do to make it work? I'm stumped here. Thanks in advance, Justin. --- Justin Wood <justin@justinwood.com> wrote:> I actually checked this too. I have rwxrwxrwt perms on the spool > directory. > > -Justin. > > --- Alan Buxey <almb@mssl.ucl.ac.uk> wrote: > > hi, > > > > > I just checked the lprng spool directory. The jobs aren't in > > there, > > > and there is no relevant information in the log files. > > > > > > Sorry, I meant command line tools like lpr, not smbclient. > > > > > > this problem is almost always due to samba spool permission > problems. > > > > i cant recall which log file to look at...perhaps > /var/log/messages.. > > but you need to make sure you have a spool directory that SAMBA can > > write > > too. > > > > iirc the default is /var/spool/samba > > > > make the directory and make it -rwxrwxrwx > > > > alan > > > __________________________________________________ > Do You Yahoo!? > Try FREE Yahoo! Mail - the world's greatest free email! > http://mail.yahoo.com/ > > -- > 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! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba