smb.conf for sharing printer to windows

this is what i use for smb.conf

[global]

workgroup = MSGROUP
server string = R&D of Open Network Architecture Samba Server
smb passwd file = /etc/smbpasswd
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY IPTOS_LOWDELAY
domain master = yes
preferred master = yes
os level = 65
dns proxy = no
name resolve order = lmhosts host bcast
bind interfaces only = yes
interfaces = eth0 192.168.1.1
hosts deny = ALL
hosts allow = 192.168.1. 127.0.0.1
debug level = 1
create mask = 0644
level2 oplocks = True
read raw = no
write cache size = 262144

load printers = yes
#printcap name = /etc/printcap
printcap name = cups
printing = cups
restrict anonymous = no
netbios name = myownusername
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto
security = share

[printers]
comment = All Printers
printable = yes
public = yes
create mask = 0700
guest ok = yes
use client driver = yes
browseable = yes
writable = no
#guest account = smbprint
path = /var/spool/samba

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = yes
read only = yes
write list = root

[homes]
comment = Home Directories
browseable = no
read only = no
invalid users = root bin daemon nobody named sys tty disk mem kmem users

[tmp]
comment = Temporary File Space
path = /tmp
read only = No
valid users = admin
invalid users = root bin daemon nobody named sys tty disk mem kmem users

[yourfolderhere]
read only = no
comment = myownsharefolder
path = /mnt/hda/folder


end

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.