Setting up a Samba printer
Bill Eldridge
bill at rfa.org
Tue Aug 25 22:28:48 GMT 1998
Sample setup for an HP LaserJet 5M
(I think the techops group permission is
critical on the Samba spool).
/etc/printcap:
TechRoom:\
:sd=/var/spool/lpd/TechRoom:\
:mx#0:\
:sh:\
:rm=172.30.0.112:\
:rp=:\
:if=/var/spool/lpd/TechRoom/filter:
/etc/smb.conf:
[TechRoom]
comment = TechRoom printer
valid users = @techops
path = /var/spool/samba/TechRoom
printer = TechRoom
public = yes
writable = no
printable = yes
print command = lpr -r -s -h -b -P%p %s
[root at asteryx samba]# ls -ld /var/spool/samba/TechRoom
drwxrwxrwx 2 root techops 1024 Aug 13 14:12
/var/spool/samba/TechRoom
[root at asteryx samba]# ls -l /var/spool/samba/TechRoom
total 0
[root at asteryx samba]# ls -ld /var/spool/lpd/TechRoom
drwxrwxr-x 2 root lp 1024 Aug 13 14:12
/var/spool/lpd/TechRoom
[root at asteryx samba]# ls -l /var/spool/lpd/TechRoom
total 15
-rwxr-xr-x 1 root root 9334 Jun 23 21:08 filter
-rwxr-xr-x 1 root root 191 Jun 23 21:08 general.cfg
-rw-r--r-- 1 root root 4 Aug 20 23:35 lock
-rwxr-xr-x 1 root root 342 Jun 23 21:08 postscript.cfg
-rw-r--r-- 1 root root 24 Aug 13 14:12 status
-rwxr-xr-x 1 root root 147 Jun 23 21:08 textonly.cfg
--
Bill Eldridge
Radio Free Asia
bill at rfa.org
More information about the samba
mailing list