chip.wiegand@simrad.com
2002-Apr-02 08:31 UTC
[Samba] samba printer on FreeBSD not accessible to NT
I have FreeBSD 4.5 and samba working fine, and a hp 952c, attached via parallel port on the FreeBSD box, working fine, on the FreeBSD box. My smb.conf is set up to share the hp printer, as follows - [global] workgroup = SIMDOM server string = Chip's second PC log file = /var/log/log.%m max log size = 50 security = domain password server = simrad_1, simrad_2 encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 path = / wins server = 157.237.65.101 null passwords = yes remote announce = 157.237.65.255 default = Chip's second PC dns proxy = no protocol = NT1 netbios name = cwiegand2 name resolve order = wins lmhosts bcast load printers = yes printcap = /etc/printcap guest account = chip print command = lpr -r -P%p %s printing = bsd [printers] comment = HP 952C path = /var/spool/samba browseable = no guest ok = yes writeable = no printable = yes print ok = yes public = yes Now, I know I don't need all of that stuff, I was just trying everything I could to get this to work. I used apsfilter to set up the printer initially, and it prints fine from fbsd apps. When I set up NT to print to it I get Access Denied, Unable to Connect when I click on the print device icon. Do I need to change the permissions somewhere, on the fbsd box? (I am able to map a drive from the nt box to the fbsd box and copy and write files to the bsd box from the nt box.) -- Chip Wiegand Computer Services Simrad, Inc www.simrad.com chip.wiegand@simrad.com "There is no reason anyone would want a computer in their home." --Ken Olson, president, chairman and founder of Digital Equipment Corporation, 1977 (They why do I have 7? Somebody help me!)
Kristyan Osborne
2002-Apr-02 23:43 UTC
[Samba] samba printer on FreeBSD not accessible to NT
I had a similar problem on win2k, the fix was to install sp2. Also make sure the spool directory has the correct permissions for your users. Cheers Kris ------------- Kristyan Osborne IT Assistant Manager Longhill High School -----Original Message----- From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] Sent: 02 April 2002 17:29 To: samba@lists.samba.org Subject: [Samba] samba printer on FreeBSD not accessible to NT I have FreeBSD 4.5 and samba working fine, and a hp 952c, attached via parallel port on the FreeBSD box, working fine, on the FreeBSD box. My smb.conf is set up to share the hp printer, as follows - [global] workgroup = SIMDOM server string = Chip's second PC log file = /var/log/log.%m max log size = 50 security = domain password server = simrad_1, simrad_2 encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 path = / wins server = 157.237.65.101 null passwords = yes remote announce = 157.237.65.255 default = Chip's second PC dns proxy = no protocol = NT1 netbios name = cwiegand2 name resolve order = wins lmhosts bcast load printers = yes printcap = /etc/printcap guest account = chip print command = lpr -r -P%p %s printing = bsd [printers] comment = HP 952C path = /var/spool/samba browseable = no guest ok = yes writeable = no printable = yes print ok = yes public = yes Now, I know I don't need all of that stuff, I was just trying everything I could to get this to work. I used apsfilter to set up the printer initially, and it prints fine from fbsd apps. When I set up NT to print to it I get Access Denied, Unable to Connect when I click on the print device icon. Do I need to change the permissions somewhere, on the fbsd box? (I am able to map a drive from the nt box to the fbsd box and copy and write files to the bsd box from the nt box.) -- Chip Wiegand Computer Services Simrad, Inc www.simrad.com chip.wiegand@simrad.com "There is no reason anyone would want a computer in their home." --Ken Olson, president, chairman and founder of Digital Equipment Corporation, 1977 (They why do I have 7? Somebody help me!) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
chip.wiegand@simrad.com
2002-Apr-03 08:38 UTC
[Samba] samba printer on FreeBSD not accessible to NT
"Kristyan Osborne" <kris@longhill.brighton-hove.sch.uk> wrote on 04/02/2002 11:37:13 PM:> I had a similar problem on win2k, the fix was to install sp2. > Also make sure the spool directory has the correct permissions for yourusers.> Cheers > Krissp2? If you are referring to the NT servic packs, all our NT boxes are at sp6a. I have set up the /var/spool/lpd/ directories as follows - -rwxr-xr-x bin daemon I am using the instructions in the book by Ted Mittelstaedt. I've used apsfilter to create several printers - hq (high quality photo), lp (low quality photo), text, raw. The raw is, according to the book, for use by Windoze to print to. So, in Windoze NT I create the printer device by doing this: Add Printer/My Computer/Add Port/LPR Port/New Port/Name of server providing LPD - cwiegand2/Name of printer of print queue on that server - raw/OK/Close/Next/then I pick the driver from the cd/print test page This is where I see in the windoze printer window the job and job status shows spooling (for a second or two) then printing - printer error. I have tried to use all the printer queues that are set up on the bsd box, not sure it I am entering it correctly on the NT box - for the option 'Name of printer or print queue on that server' I have entered only the name - raw (also tried lp, etc). I have also tried using the path to the queue - /var/spool/lpd/raw, and I get the same results. Notice I don't get access denied errors, the spooling appears to start then fails. I also reinstalled sp6a 'just in case', but it still responds with the same error. My printcap looks like this - # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL hq|hpdj/850C;r=1200x1200;q=photo;c=full;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/hq:\ :lf=/var/spool/lpd/hq/log:\ :af=/var/spool/lpd/hq/acct:\ :mx#0:\ :sh: # APS1_END - don't delete this # APS2_BEGIN:printer2 # - don't delete start label for apsfilter printer2 # - no other printer defines between BEGIN and END LABEL text|hpdj/850C;r=300x300;q=low;c=mono;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/text:\ :lf=/var/spool/lpd/text/log:\ :af=/var/spool/lpd/text/acct:\ :mx#0:\ :sh: # APS2_END - don't delete this # APS3_BEGIN:printer3 # - don't delete start label for apsfilter printer3 # - no other printer defines between BEGIN and END LABEL lp|hpdj/850C;r=300x300;q=medium;c=full;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :sh: # APS3_END - don't delete this # APS4_BEGIN:printer4 # - don't delete start label for apsfilter printer4 # - no other printer defines between BEGIN and END LABEL raw|hpdj/850C;r=300x300;q=medium;c=full;p=letter;m=raw:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/raw:\ :lf=/var/spool/lpd/raw/log:\ :af=/var/spool/lpd/raw/acct:\ :mx#0:\ :sf:\ :sh: # APS4_END - don't delete this -- Chip> ------------- > Kristyan Osborne IT Assistant Manager > Longhill High School > > -----Original Message----- > From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] > Sent: 02 April 2002 17:29 > To: samba@lists.samba.org > Subject: [Samba] samba printer on FreeBSD not accessible to NT > > I have FreeBSD 4.5 and samba working fine, and a hp 952c, attached via > parallel > port on the FreeBSD box, working fine, on the FreeBSD box. > My smb.conf is set up to share the hp printer, as follows - > [global] > workgroup = SIMDOM > server string = Chip's second PC > log file = /var/log/log.%m > max log size = 50 > security = domain > password server = simrad_1, simrad_2 > encrypt passwords = yes > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > path = / > wins server = 157.237.65.101 > null passwords = yes > remote announce = 157.237.65.255 > default = Chip's second PC > dns proxy = no > protocol = NT1 > netbios name = cwiegand2 > name resolve order = wins lmhosts bcast > load printers = yes > printcap = /etc/printcap > guest account = chip > print command = lpr -r -P%p %s > printing = bsd > [printers] > comment = HP 952C > path = /var/spool/samba > browseable = no > guest ok = yes > writeable = no > printable = yes > print ok = yes > public = yes > Now, I know I don't need all of that stuff, I was just trying everythingI> could to get this to > work. I used apsfilter to set up the printer initially, and it printsfine> from fbsd apps. When > I set up NT to print to it I get Access Denied, Unable to Connect when I > click on the print > device icon. Do I need to change the permissions somewhere, on the fbsd > box? (I am > able to map a drive from the nt box to the fbsd box and copy and write > files to the bsd box > from the nt box.) > -- > Chip Wiegand > Computer Services > Simrad, Inc > www.simrad.com > chip.wiegand@simrad.com > > "There is no reason anyone would want a computer in their home." > --Ken Olson, president, chairman and founder of Digital Equipment > Corporation, 1977 > (They why do I have 7? Somebody help me!) > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Kristyan Osborne
2002-Apr-03 23:37 UTC
[Samba] samba printer on FreeBSD not accessible to NT
By using LPR on the client machines you are bypassing samba. Therefor this question does not belong on the samba list. If you wish to use samba for windows printing then I suggest you change the permissions on the spool directory as when users print the file is owned by them. Hence the spool dir should have write access for all users. Cheers ------------- Kristyan Osborne IT Assistant Manager Longhill High School -----Original Message----- From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] Sent: 03 April 2002 17:35 To: Kristyan Osborne Cc: chip.wiegand@simrad.com; samba@lists.samba.org Subject: RE: [Samba] samba printer on FreeBSD not accessible to NT "Kristyan Osborne" <kris@longhill.brighton-hove.sch.uk> wrote on 04/02/2002 11:37:13 PM:> I had a similar problem on win2k, the fix was to install sp2. > Also make sure the spool directory has the correct permissions for yourusers.> Cheers > Krissp2? If you are referring to the NT servic packs, all our NT boxes are at sp6a. I have set up the /var/spool/lpd/ directories as follows - -rwxr-xr-x bin daemon I am using the instructions in the book by Ted Mittelstaedt. I've used apsfilter to create several printers - hq (high quality photo), lp (low quality photo), text, raw. The raw is, according to the book, for use by Windoze to print to. So, in Windoze NT I create the printer device by doing this: Add Printer/My Computer/Add Port/LPR Port/New Port/Name of server providing LPD - cwiegand2/Name of printer of print queue on that server - raw/OK/Close/Next/then I pick the driver from the cd/print test page This is where I see in the windoze printer window the job and job status shows spooling (for a second or two) then printing - printer error. I have tried to use all the printer queues that are set up on the bsd box, not sure it I am entering it correctly on the NT box - for the option 'Name of printer or print queue on that server' I have entered only the name - raw (also tried lp, etc). I have also tried using the path to the queue - /var/spool/lpd/raw, and I get the same results. Notice I don't get access denied errors, the spooling appears to start then fails. I also reinstalled sp6a 'just in case', but it still responds with the same error. My printcap looks like this - # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL hq|hpdj/850C;r=1200x1200;q=photo;c=full;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/hq:\ :lf=/var/spool/lpd/hq/log:\ :af=/var/spool/lpd/hq/acct:\ :mx#0:\ :sh: # APS1_END - don't delete this # APS2_BEGIN:printer2 # - don't delete start label for apsfilter printer2 # - no other printer defines between BEGIN and END LABEL text|hpdj/850C;r=300x300;q=low;c=mono;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/text:\ :lf=/var/spool/lpd/text/log:\ :af=/var/spool/lpd/text/acct:\ :mx#0:\ :sh: # APS2_END - don't delete this # APS3_BEGIN:printer3 # - don't delete start label for apsfilter printer3 # - no other printer defines between BEGIN and END LABEL lp|hpdj/850C;r=300x300;q=medium;c=full;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/lp:\ :lf=/var/spool/lpd/lp/log:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :sh: # APS3_END - don't delete this # APS4_BEGIN:printer4 # - don't delete start label for apsfilter printer4 # - no other printer defines between BEGIN and END LABEL raw|hpdj/850C;r=300x300;q=medium;c=full;p=letter;m=raw:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/raw:\ :lf=/var/spool/lpd/raw/log:\ :af=/var/spool/lpd/raw/acct:\ :mx#0:\ :sf:\ :sh: # APS4_END - don't delete this -- Chip> ------------- > Kristyan Osborne IT Assistant Manager > Longhill High School > > -----Original Message----- > From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] > Sent: 02 April 2002 17:29 > To: samba@lists.samba.org > Subject: [Samba] samba printer on FreeBSD not accessible to NT > > I have FreeBSD 4.5 and samba working fine, and a hp 952c, attached via > parallel > port on the FreeBSD box, working fine, on the FreeBSD box. > My smb.conf is set up to share the hp printer, as follows - > [global] > workgroup = SIMDOM > server string = Chip's second PC > log file = /var/log/log.%m > max log size = 50 > security = domain > password server = simrad_1, simrad_2 > encrypt passwords = yes > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > path = / > wins server = 157.237.65.101 > null passwords = yes > remote announce = 157.237.65.255 > default = Chip's second PC > dns proxy = no > protocol = NT1 > netbios name = cwiegand2 > name resolve order = wins lmhosts bcast > load printers = yes > printcap = /etc/printcap > guest account = chip > print command = lpr -r -P%p %s > printing = bsd > [printers] > comment = HP 952C > path = /var/spool/samba > browseable = no > guest ok = yes > writeable = no > printable = yes > print ok = yes > public = yes > Now, I know I don't need all of that stuff, I was just trying everythingI> could to get this to > work. I used apsfilter to set up the printer initially, and it printsfine> from fbsd apps. When > I set up NT to print to it I get Access Denied, Unable to Connect when I > click on the print > device icon. Do I need to change the permissions somewhere, on the fbsd > box? (I am > able to map a drive from the nt box to the fbsd box and copy and write > files to the bsd box > from the nt box.) > -- > Chip Wiegand > Computer Services > Simrad, Inc > www.simrad.com > chip.wiegand@simrad.com > > "There is no reason anyone would want a computer in their home." > --Ken Olson, president, chairman and founder of Digital Equipment > Corporation, 1977 > (They why do I have 7? Somebody help me!) > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
chip.wiegand@simrad.com
2002-Apr-04 08:14 UTC
[Samba] samba printer on FreeBSD not accessible to NT
"Kristyan Osborne" <kris@longhill.brighton-hove.sch.uk> wrote on 04/03/2002 11:34:10 PM:> By using LPR on the client machines you are bypassing samba. > Therefor this question does not belong on the samba list. If you > wish to use samba for windows printing then I suggest you change the > permissions on the spool directory as when users print the file is > owned by them. Hence the spool dir should have write access for allusers.> > Cheers > > ------------- > Kristyan Osborne IT Assistant Manager > Longhill High SchoolI don't understand what you mean. How do I send a print job from NT to the fbsd samba-shared printer without LPR? I've set up a samba shared printer on a freebsd box at home and the windoze 98 boxes can print to it with no problems. I don't understand why my NT boxes here at work won't print to a samba shared printer. The samba.org web site doesn't have any help info about printer setup. I've got two samba books and 2 freebsd books, and still have trouble getting nt to print to that printer. I'm getting a bit frustrated by this. I've got 8 nt servers I'd like to have print to this printer. Is there some online help on this subject? I'm sure I'm missing something basic somewhere, but don't know where. Thanks for the help, Chip> -----Original Message----- > From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] > Sent: 03 April 2002 17:35 > To: Kristyan Osborne > Cc: chip.wiegand@simrad.com; samba@lists.samba.org > Subject: RE: [Samba] samba printer on FreeBSD not accessible to NT > > "Kristyan Osborne" <kris@longhill.brighton-hove.sch.uk> wrote on > 04/02/2002 11:37:13 PM: > > > I had a similar problem on win2k, the fix was to install sp2. > > Also make sure the spool directory has the correct permissions foryour> users. > > Cheers > > Kris > > sp2? If you are referring to the NT servic packs, all our NT boxes areat> sp6a. > I have set up the /var/spool/lpd/ directories as follows - > -rwxr-xr-x bin daemon > I am using the instructions in the book by Ted Mittelstaedt. I've used > apsfilter > to create several printers - hq (high quality photo), lp (low quality > photo), text, raw. The raw is, according to the book, for use by Windoze > to print > to. So, in Windoze NT I create the printer device by doing this: > Add Printer/My Computer/Add Port/LPR Port/New Port/Name of server > providing LPD - > cwiegand2/Name of printer of print queue on that server - > raw/OK/Close/Next/then > I pick the driver from the cd/print test page > This is where I see in the windoze printer window the job and job status > shows > spooling (for a second or two) then printing - printer error. > I have tried to use all the printer queues that are set up on the bsdbox,> not sure > it I am entering it correctly on the NT box - for the option 'Name of > printer or > print queue on that server' I have entered only the name - raw (alsotried> lp, etc). > I have also tried using the path to the queue - /var/spool/lpd/raw, andI> get the > same results. > Notice I don't get access denied errors, the spooling appears to start > then fails. > I also reinstalled sp6a 'just in case', but it still responds with the > same error. > My printcap looks like this - > # APS1_BEGIN:printer1 > # - don't delete start label for apsfilter printer1 > # - no other printer defines between BEGIN and END LABEL > hq|hpdj/850C;r=1200x1200;q=photo;c=full;p=letter;m=auto:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/hq:\ > :lf=/var/spool/lpd/hq/log:\ > :af=/var/spool/lpd/hq/acct:\ > :mx#0:\ > :sh: > # APS1_END - don't delete this > # APS2_BEGIN:printer2 > # - don't delete start label for apsfilter printer2 > # - no other printer defines between BEGIN and END LABEL > text|hpdj/850C;r=300x300;q=low;c=mono;p=letter;m=auto:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/text:\ > :lf=/var/spool/lpd/text/log:\ > :af=/var/spool/lpd/text/acct:\ > :mx#0:\ > :sh: > # APS2_END - don't delete this > # APS3_BEGIN:printer3 > # - don't delete start label for apsfilter printer3 > # - no other printer defines between BEGIN and END LABEL > lp|hpdj/850C;r=300x300;q=medium;c=full;p=letter;m=auto:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/lp:\ > :lf=/var/spool/lpd/lp/log:\ > :af=/var/spool/lpd/lp/acct:\ > :mx#0:\ > :sh: > # APS3_END - don't delete this > # APS4_BEGIN:printer4 > # - don't delete start label for apsfilter printer4 > # - no other printer defines between BEGIN and END LABEL > raw|hpdj/850C;r=300x300;q=medium;c=full;p=letter;m=raw:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/raw:\ > :lf=/var/spool/lpd/raw/log:\ > :af=/var/spool/lpd/raw/acct:\ > :mx#0:\ > :sf:\ > :sh: > # APS4_END - don't delete this > -- > Chip > > > ------------- > > Kristyan Osborne IT Assistant Manager > > Longhill High School > > > > -----Original Message----- > > From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] > > Sent: 02 April 2002 17:29 > > To: samba@lists.samba.org > > Subject: [Samba] samba printer on FreeBSD not accessible to NT > > > > I have FreeBSD 4.5 and samba working fine, and a hp 952c, attached via > > parallel > > port on the FreeBSD box, working fine, on the FreeBSD box. > > My smb.conf is set up to share the hp printer, as follows - > > [global] > > workgroup = SIMDOM > > server string = Chip's second PC > > log file = /var/log/log.%m > > max log size = 50 > > security = domain > > password server = simrad_1, simrad_2 > > encrypt passwords = yes > > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > > path = / > > wins server = 157.237.65.101 > > null passwords = yes > > remote announce = 157.237.65.255 > > default = Chip's second PC > > dns proxy = no > > protocol = NT1 > > netbios name = cwiegand2 > > name resolve order = wins lmhosts bcast > > load printers = yes > > printcap = /etc/printcap > > guest account = chip > > print command = lpr -r -P%p %s > > printing = bsd > > [printers] > > comment = HP 952C > > path = /var/spool/samba > > browseable = no > > guest ok = yes > > writeable = no > > printable = yes > > print ok = yes > > public = yes > > Now, I know I don't need all of that stuff, I was just tryingeverything> I > > could to get this to > > work. I used apsfilter to set up the printer initially, and it prints > fine > > from fbsd apps. When > > I set up NT to print to it I get Access Denied, Unable to Connect whenI> > click on the print > > device icon. Do I need to change the permissions somewhere, on thefbsd> > box? (I am > > able to map a drive from the nt box to the fbsd box and copy and write > > files to the bsd box > > from the nt box.) > > -- > > Chip Wiegand > > Computer Services > > Simrad, Inc > > www.simrad.com > > chip.wiegand@simrad.com > > > > "There is no reason anyone would want a computer in their home." > > --Ken Olson, president, chairman and founder of Digital Equipment > > Corporation, 1977 > > (They why do I have 7? Somebody help me!) > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba
Kristyan Osborne
2002-Apr-04 23:51 UTC
[Samba] samba printer on FreeBSD not accessible to NT
Ok, this is how I do it at work. I have a Xerox 8812 Laser printer connected to my FreeBSD-4.4 box on lpt0. The /etc/printcap file entry for this printer is: PostScript|Xerox:\ :lp=/dev/lpt0:\ :sd=/var/spool/lpd/xerox:\ :mx#0:\ :sh: The permissions on the spool directory (/var/spool/lpd/xerox) are: drwxrwxrwx daemon daemon In the smb.conf file: #======================= Global Settings ====================================[global] workgroup = LONGHILL server string = Photocopier/IT Suite Print Server name resolve order = host bcast load printers = no printcap name = /etc/printcap printing = bsd log file = /usr/local/samba/var/log.%m log level = 3 max log size = 50 security = server password server = MC095 interfaces = 10.108.1.6/255.255.224.0 os level = 33 deadtime = 5 encrypt passwords = yes #============================ Share Definitions ============================= [Xerox] comment = IT Xerox 8812 path = /var/spool/lpd/xerox ;browseable = no printable = yes print command = /usr/bin/lpr -r -h -P PostScript %s Start samba. On your windoz box you should be able to see your samba machine under network neighbourhood. You should also be able to see your printer if you double click on the samba machine. To add your printer to your client: Goto control panel -> printers -> add printer -> Click on network printer. It should ask you for the printer name or I think you can click browse or next and it will give you a listing of your network. Find your samba machine and click on the printer you want. It will then ask you to select the printer from a list so that it can install a printer driver. Thats it, happy printing. ------------- Kristyan Osborne IT Assistant Manager Longhill High School -----Original Message----- From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] Sent: 04 April 2002 17:14 To: Kristyan Osborne Cc: samba@lists.samba.org Subject: RE: [Samba] samba printer on FreeBSD not accessible to NT "Kristyan Osborne" <kris@longhill.brighton-hove.sch.uk> wrote on 04/03/2002 11:34:10 PM:> By using LPR on the client machines you are bypassing samba. > Therefor this question does not belong on the samba list. If you > wish to use samba for windows printing then I suggest you change the > permissions on the spool directory as when users print the file is > owned by them. Hence the spool dir should have write access for allusers.> > Cheers > > ------------- > Kristyan Osborne IT Assistant Manager > Longhill High SchoolI don't understand what you mean. How do I send a print job from NT to the fbsd samba-shared printer without LPR? I've set up a samba shared printer on a freebsd box at home and the windoze 98 boxes can print to it with no problems. I don't understand why my NT boxes here at work won't print to a samba shared printer. The samba.org web site doesn't have any help info about printer setup. I've got two samba books and 2 freebsd books, and still have trouble getting nt to print to that printer. I'm getting a bit frustrated by this. I've got 8 nt servers I'd like to have print to this printer. Is there some online help on this subject? I'm sure I'm missing something basic somewhere, but don't know where. Thanks for the help, Chip> -----Original Message----- > From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] > Sent: 03 April 2002 17:35 > To: Kristyan Osborne > Cc: chip.wiegand@simrad.com; samba@lists.samba.org > Subject: RE: [Samba] samba printer on FreeBSD not accessible to NT > > "Kristyan Osborne" <kris@longhill.brighton-hove.sch.uk> wrote on > 04/02/2002 11:37:13 PM: > > > I had a similar problem on win2k, the fix was to install sp2. > > Also make sure the spool directory has the correct permissions foryour> users. > > Cheers > > Kris > > sp2? If you are referring to the NT servic packs, all our NT boxes areat> sp6a. > I have set up the /var/spool/lpd/ directories as follows - > -rwxr-xr-x bin daemon > I am using the instructions in the book by Ted Mittelstaedt. I've used > apsfilter > to create several printers - hq (high quality photo), lp (low quality > photo), text, raw. The raw is, according to the book, for use by Windoze > to print > to. So, in Windoze NT I create the printer device by doing this: > Add Printer/My Computer/Add Port/LPR Port/New Port/Name of server > providing LPD - > cwiegand2/Name of printer of print queue on that server - > raw/OK/Close/Next/then > I pick the driver from the cd/print test page > This is where I see in the windoze printer window the job and job status > shows > spooling (for a second or two) then printing - printer error. > I have tried to use all the printer queues that are set up on the bsdbox,> not sure > it I am entering it correctly on the NT box - for the option 'Name of > printer or > print queue on that server' I have entered only the name - raw (alsotried> lp, etc). > I have also tried using the path to the queue - /var/spool/lpd/raw, andI> get the > same results. > Notice I don't get access denied errors, the spooling appears to start > then fails. > I also reinstalled sp6a 'just in case', but it still responds with the > same error. > My printcap looks like this - > # APS1_BEGIN:printer1 > # - don't delete start label for apsfilter printer1 > # - no other printer defines between BEGIN and END LABEL > hq|hpdj/850C;r=1200x1200;q=photo;c=full;p=letter;m=auto:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/hq:\ > :lf=/var/spool/lpd/hq/log:\ > :af=/var/spool/lpd/hq/acct:\ > :mx#0:\ > :sh: > # APS1_END - don't delete this > # APS2_BEGIN:printer2 > # - don't delete start label for apsfilter printer2 > # - no other printer defines between BEGIN and END LABEL > text|hpdj/850C;r=300x300;q=low;c=mono;p=letter;m=auto:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/text:\ > :lf=/var/spool/lpd/text/log:\ > :af=/var/spool/lpd/text/acct:\ > :mx#0:\ > :sh: > # APS2_END - don't delete this > # APS3_BEGIN:printer3 > # - don't delete start label for apsfilter printer3 > # - no other printer defines between BEGIN and END LABEL > lp|hpdj/850C;r=300x300;q=medium;c=full;p=letter;m=auto:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/lp:\ > :lf=/var/spool/lpd/lp/log:\ > :af=/var/spool/lpd/lp/acct:\ > :mx#0:\ > :sh: > # APS3_END - don't delete this > # APS4_BEGIN:printer4 > # - don't delete start label for apsfilter printer4 > # - no other printer defines between BEGIN and END LABEL > raw|hpdj/850C;r=300x300;q=medium;c=full;p=letter;m=raw:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/raw:\ > :lf=/var/spool/lpd/raw/log:\ > :af=/var/spool/lpd/raw/acct:\ > :mx#0:\ > :sf:\ > :sh: > # APS4_END - don't delete this > -- > Chip > > > ------------- > > Kristyan Osborne IT Assistant Manager > > Longhill High School > > > > -----Original Message----- > > From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com] > > Sent: 02 April 2002 17:29 > > To: samba@lists.samba.org > > Subject: [Samba] samba printer on FreeBSD not accessible to NT > > > > I have FreeBSD 4.5 and samba working fine, and a hp 952c, attached via > > parallel > > port on the FreeBSD box, working fine, on the FreeBSD box. > > My smb.conf is set up to share the hp printer, as follows - > > [global] > > workgroup = SIMDOM > > server string = Chip's second PC > > log file = /var/log/log.%m > > max log size = 50 > > security = domain > > password server = simrad_1, simrad_2 > > encrypt passwords = yes > > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > > path = / > > wins server = 157.237.65.101 > > null passwords = yes > > remote announce = 157.237.65.255 > > default = Chip's second PC > > dns proxy = no > > protocol = NT1 > > netbios name = cwiegand2 > > name resolve order = wins lmhosts bcast > > load printers = yes > > printcap = /etc/printcap > > guest account = chip > > print command = lpr -r -P%p %s > > printing = bsd > > [printers] > > comment = HP 952C > > path = /var/spool/samba > > browseable = no > > guest ok = yes > > writeable = no > > printable = yes > > print ok = yes > > public = yes > > Now, I know I don't need all of that stuff, I was just tryingeverything> I > > could to get this to > > work. I used apsfilter to set up the printer initially, and it prints > fine > > from fbsd apps. When > > I set up NT to print to it I get Access Denied, Unable to Connect whenI> > click on the print > > device icon. Do I need to change the permissions somewhere, on thefbsd> > box? (I am > > able to map a drive from the nt box to the fbsd box and copy and write > > files to the bsd box > > from the nt box.) > > -- > > Chip Wiegand > > Computer Services > > Simrad, Inc > > www.simrad.com > > chip.wiegand@simrad.com > > > > "There is no reason anyone would want a computer in their home." > > --Ken Olson, president, chairman and founder of Digital Equipment > > Corporation, 1977 > > (They why do I have 7? Somebody help me!) > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba