[Samba] printer server
RRuegner
robert at ruegner.org
Tue Apr 20 17:01:01 GMT 2004
Alexandre Carlos schrieb:
> I trying to share a printer using samba, but is not working. I already
> share the files but the printer didn't workout. I'm using CUPS.
>
> Can anyone help me solve this problem?
>
> The configuration of smb.conf for printing is:
>
> [global]
> workgroup = GRUPO
> netbios name = LINUX
> server string = Servidor Samba
> interfaces = eth0
> security = SHARE
> encrypt passwords = Yes
> obey pam restrictions = Yes
> pam password change = Yes
> passwd program = /usr/bin/passwd %u
> passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> *passwd:*all*authentication*tokens*updated*successfully*
> unix password sync = Yes
> log file = /var/log/samba/%m.log
> max log size = 0
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> dns proxy = No
> printcap name = /etc/printcap
> printing = cups
> load printers = yes
>
> [printers]
> comment = All Printers
> path = /var/spool/samba
> guest ok = Yes
> printable = Yes
> browseable = No
> guest ok = yes
> public = yes
> create mode = 0777
> security = server
> writable = no
>
> [HP8100]
> path = /var/spool/samba
> valid users = %S
> create mask = 0700
> printable = Yes
> printing = cups
> print command = lpr -r -h -P %p %s
> printer name = HP LaserJet 8100
> browseable = No
> guest ok = yes
> add machine script =
> public = yes
> writable = yes
> load printers = yes
> hosts allow = 172.16.4.127
>
> I would like to know if i would have to edit any another file, like
> /etc/printcap or /etc/cups/cups.conf
did you print from linux allready? did you check your cupds log?
your definition of the printer is ugly
look at this example
[print$]
comment = printer driver area
path = /var/lib/samba/drivers
browsable = yes
read only = yes
guest ok = yes
write list = @"Domain Admins"
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = no
read only = No
[pdfwriter]
comment = PDF File Generator
path = /var/spool/samba
printable = yes
guest ok = Yes
browseable = yes
default devmode = Yes
read only = No
printer admin = rruegner
More information about the samba
mailing list