Jeramy,

  Try running the following commands to see if they
find/correct anything you've missed:

checkpc -f -V
testparm

Also, be sure your lpr spool dirs aren't the same
as your samba spool dirs.  Rights/owners are
different on them.

One mod to lpd.conf that may hold a key is to
change the defaults on the spool dir rights
from 000700 to 000770.  It fixed a problem for
me.

spool_dir_perms=000770

My LPRng 3.8.21 / samba 2.28a  setup results in:

samba1# ls -la /var/spool/samba
drwxrwxrwx  12 root  daemon  512 Jan 31  2003 ./
drwxr-xr-x  12 root  wheel   512 Dec 30  2002 ../
drwxrwxrwx   2 root  daemon  512 Nov 18 11:49 optra/

samba1# ls -la /var/spool/samba/optra
drwxrwxrwx   2 root      daemon      512 Nov 18 11:49 ./
drwxrwxrwx  12 root      daemon      512 Jan 31  2003 ../
-rw-------   1 bentleyl  daemon  2655419 Nov  4 09:49 smbprn.001153.Q11264

samba1# l /var/spool/lpd
drwxrwxr-x  12 root    daemon  512 Jan 31  2003 ./
drwxr-xr-x  12 root    wheel   512 Dec 30  2002 ../
drwxrwx---   2 daemon  daemon  512 Nov 18 12:56 optra/

samba1# l /var/spool/lpd/optra
drwxrwx---   2 daemon  daemon     512 Nov 18 12:56 ./
drwxrwxr-x  12 root    daemon     512 Jan 31  2003 ../
-rw-------   1 daemon  daemon  475481 Nov 18 11:49 acct
-rw-------   1 daemon  daemon      65 Jun 10  2002 control.optra
-rw-------   1 daemon  daemon      89 Nov 18 11:49 control.pr
-rw-------   1 daemon  daemon       0 Nov 18 11:49 lock.pr
-rw-------   1 daemon  daemon  516579 Nov 18 11:49 log
-rw-------   1 daemon  daemon      68 Nov 18 12:00 lpq
-rw-------   1 daemon  daemon    5084 Nov 18 12:00 lpq.0
-rw-------   1 daemon  daemon      47 Feb  5  2003 lpq.1
-rw-------   1 daemon  daemon       0 Jun 12  2002 optra
-rw-------   1 daemon  daemon       0 Apr 12  2001 status
-rw-------   1 daemon  daemon    7749 Jun 12  2002 status.optra
-rw-------   1 daemon  daemon    8158 Nov 18 11:49 status.pr
-rw-------   1 daemon  daemon       6 Jun 12  2002 unspooler.optra
-rw-------   1 daemon  daemon       5 Nov 18 11:49 unspooler.pr

 A couple of side notes:

1.  Be sure you're using the LPRng executables.  When I update
my OpenBSD box, I have to go back and reset the links to them.
paste the following into a text file, edit it to correct any dir
differences.  Set the text file as executable, and run it if you've
determined the binaries are actually lpr, not LPRng.  Don't forgeet
to run it if you upgrade your OS, if the upgrade installs lpr
binaries by default.

cd /usr/bin
mv lp lp.org
mv lpq lpq.org
mv lpr lpr.org
mv lprm lprm.org
mv lpstat lpstat.org
cd /usr/sbin
mv lpc lpc.org
mv lpd lpd.org
mv lpracct lpracct.org
ln -s /usr/local/bin/lp /usr/bin/lp
ln -s /usr/local/bin/lpq /usr/bin/lpq
ln -s /usr/local/bin/lpr /usr/bin/lpr
ln -s /usr/local/bin/lprm /usr/bin/lprm
ln -s /usr/local/bin/lpstat /usr/bin/lpstat
ln -s /usr/local/sbin/lpc /usr/sbin/lpc
ln -s /usr/local/sbin/lpd /usr/sbin/lpd
ln -s /usr/local/sbin/lpraccnt /usr/sbin/lpraccnt

NOTE:  This doesn't take into account OS-specific things,
like CUPS/LPRng switching, the location of the printcap
and lpd_printcap files, filters, and local tweaks.  It
works on my OpenBSD 3.2 and 3.4 print servers.  Verify
where your lp* executables are, and correct the dirs
and links prior to running the script.

2.  Having said all of the above...I've pretty much
given up on using samba to handle my print jobs,
and print directly to LPRng.  I never could
get the printed job name to be annunciated; just
the smbprn.xxxxxx.xxxxxx spooled name.  I set up
a local TPC/IP port on my Win2k/XP boxen, custom
settings of server/printer name, lpr, queue name, and
check the "LPR byte count enabled" box.
    The print jobs annunciate correctly in the
printer status on the PC, and in the job log
on the printer, if capable.  If the job is hung,
I only have to look at LPRng and the printer;
samba is no longer a factor.  Simpler is better...

Hope this helps,
Jim

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to