To configure printer in Samba (For CUPS):
1. Install Printer in CUPS and test it.
2. Use following configuration in smb.conf:
In “global” section add following –>
printcap name = cups
lock directory = /var/lock/samba
printing = cups
print command =
lpq command = %p
lprm command =
In “shares” –>
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No
[hp_LaserJet_1320] -------------> You can give any name to share
comment = hp_LaserJet_1320
path = /var/spool/samba
read only = No
guest ok = Yes
printable = Yes
printer name = hp_LaserJet_1320 ----> Use Printer name
use client driver = Yes ----> This is very IMP otherwise u can get
oplocks = No Error of access denied in windows.
share modes = No
And Restart Samba
Enjoy…..