Unix Printer for Windows clients
Odhiambo Washington
wash at iconnect.co.ke
Tue Oct 17 17:44:32 GMT 2000
* Bill Grzanich <organix4 at mindspring.com> [20001017 17:05]:
=>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
Doesn't seem to work still....
No compaints now but jobs just seem to disappear without any msgs..no clue
in lpd-err
admin:/var/spool/lpd$ ls -al
total 6
drwxr-xr-x 6 root daemon 512 Sep 3 11:10 .
drwxr-xr-x 14 root wheel 512 Oct 15 17:51 ..
drwxrwxrwt 2 root daemon 512 Oct 17 20:05
printer1-hpdj-a4-auto-default
drwxrwxrwt 2 root daemon 512 Sep 3 11:06 printer1-hpdj-a4-raw
drwxr-xr-x 2 root daemon 512 Oct 16 15:06
printer2-ljet4-a4-auto-default
drwxr-xr-x 2 root daemon 512 Sep 3 11:10 printer2-ljet4-a4-raw
[smb.conf]
[hpdj]
path = /var/spool/lpd/printer1-hpdj-a4-auto-default
printer name = hpdj
writable = yes
public = yes
printable = yes
valid users = accmsa wash
; print command = /usr/bin/lpr -P%p -r %s; rm %s
Any obvious errors in config that you can see?? I guess I've moved 1
positive step ahead.
Another good guy suggested as below:
###
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.
###
I've tried it and I end up same place......
=>> 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 at 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.
=>>
=>
-Wash
--
Odhiambo Washington Inter-Connect Ltd.,
wash at iconnect.co.ke 5th Flr Furaha Plaza
Tel: 254 11 222604 Nkrumah Rd.,
Fax: 254 11 222636 PO Box 83613 MOMBASA, KENYA.
We do not inherit this land from our ancestors; we borrow it from our
children. -Haida Indian saying
More information about the samba
mailing list