Hi sharers, I have samba in two servers, each running as "domain controllers". All the Windows computers in our LAN are grouped into one domain -"DOMAIN A". I also have a second Unix box running Samba and has its own domain -"DOMAIN B" I have an HP DJ 895C on this computer on DOMAIN B and I have shared it as follows: [snip smb.conf] load printers = yes [printers] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print guest ok = yes writeable = yes printable = yes public =no valid users = accmsa create mode = 0777 [lp] path = /var/spool/lpd/hpdj printer name = hpdj writable = yes public = yes printable = yes valid users = accmsa wash ; print command = /usr/bin/lpr -P%p -r %s; rm %s [snip] Now everytime I try to install the printer on a Windows PC I get the error "There was an error writing to \\ServerNAME\printername for printer (Printer_name). The network name cannot be found. The printer will be set to work offline." So essentially that denies me the use of the printer....and the Windows lusers want to access it.Hell, I am the sysadmin and so I am in big problem. I don't give a damn if anyone on the Internet accessed this printer as DOMAN B is on 24hrs. Would someone point out the errors I've made in smb.conf or elsewhere? i just need to give all PCs on this subnet access to the printer. Thank you. -Wash -- Odhiambo Washington Inter-Connect Ltd., wash@iconnect.co.ke 5th Flr Furaha Plaza Tel: 254 11 222604 Nkrumah Rd., Fax: 254 11 222636 PO Box 83613 MOMBASA, KENYA. Be frank and explicit with your lawyer... it is his business to confuse the issue afterwards.
Check the Unix permissions on your /var/spool/lpd/hpdj directory. I suspect it is not allowing writes. I have my printers pointing to /var/spool/samba and it looks like this: drwxrwxrwt 2 root root 4096 Oct 17 09:00 /var/spool/samba I hope this helps. (I've been bitten by this one myself.) Best regards, -Bill ----- Original Message ----- From: "Odhiambo Washington" <wash@iconnect.co.ke> To: "Samba Worries!" <samba@lists.samba.org> Sent: Tuesday, October 17, 2000 8:47 AM Subject: Unix Printer for Windows clients> Hi sharers, > I have samba in two servers, each running as "domain controllers". All the > Windows computers in our LAN are grouped into one domain -"DOMAIN A". I > also have a second Unix box running Samba and has its own domain > -"DOMAIN B" > I have an HP DJ 895C on this computer on DOMAIN B and I have shared it as > follows: > > [snip smb.conf] > load printers = yes > > [printers] > comment = All Printers > path = /var/spool/samba > browseable = no > # Set public = yes to allow user 'guest account' to print > guest ok = yes > writeable = yes > printable = yes > public =no > valid users = accmsa > create mode = 0777 > [lp] > path = /var/spool/lpd/hpdj > printer name = hpdj > writable = yes > public = yes > printable = yes > valid users = accmsa wash > ; print command = /usr/bin/lpr -P%p -r %s; rm %s > [snip] > > Now everytime I try to install the printer on a Windows PC I get the error > "There was an error writing to \\ServerNAME\printername for printer > (Printer_name). The network name cannot be found. The printer will be set > to work offline." > > So essentially that denies me the use of the printer....and the Windows > lusers want to access it.Hell, I am the sysadmin and so I am in big > problem. I don't give a damn if anyone on the Internet accessed thisprinter as> DOMAN B is on 24hrs. > > Would someone point out the errors I've made in smb.conf or elsewhere? i > just need to give all PCs on this subnet access to the printer. > > Thank you. > > -Wash > > -- > Odhiambo Washington Inter-Connect Ltd., > wash@iconnect.co.ke 5th Flr Furaha Plaza > Tel: 254 11 222604 Nkrumah Rd., > Fax: 254 11 222636 PO Box 83613 MOMBASA, KENYA. > > Be frank and explicit with your lawyer... it is his business to confusethe> issue afterwards. >
Odhiambo Washington wrote:> > Hi sharers, > I have samba in two servers, each running as "domain controllers". All the > Windows computers in our LAN are grouped into one domain -"DOMAIN A". I > also have a second Unix box running Samba and has its own domain > -"DOMAIN B" > I have an HP DJ 895C on this computer on DOMAIN B and I have shared it as > follows: > [smb.conf snipped] > > Now everytime I try to install the printer on a Windows PC I get the error > "There was an error writing to \\ServerNAME\printername for printer > (Printer_name). The network name cannot be found. The printer will be set > to work offline." > > So essentially that denies me the use of the printer....and the Windows > lusers want to access it.Hell, I am the sysadmin and so I am in big > problem. I don't give a damn if anyone on the Internet accessed this printer as > DOMAN B is on 24hrs.Odhiambo, i would try a different approach: - "DOMAIN B" server makes that printer accessible via lpd to "DOMAIN A" server. If you setup yours hosts.lpd properly nobody can use the printer unauthorized. - setup lpd print queue on "DOMAIN A" server to remote printer on "DOMAIN B" - "DOMAIN A" server exports this printer queue to the Windows PCs. HTH Regards, Klaus -- +---------------------------+---------------------------+ | Klaus P. Wirl | Email: kwirl@lucent.com | | Lucent Technologies | Phone: +49 911 526-3626 | | Thurn-und-Taxis Str. 10 | Mobile:+49 171 970 6639 | | 90411 N?rnberg, Germany | Fax: +49 911 526-4193 | +---------------------------+---------------------------+ --- My opinion is my opinion is my opinion ---