rendered paste body#======================= Global Settings =====================================
[global]
workgroup = DEFINATIVE_X
server string = Samba Server %v
# printcap name = cups
# load printers = yes
# printcap cache time = 60
# printing = cups
log file = /var/log/samba/%m.log
max log size = 50
hosts allow = 10.10.2. 127.
map to guest = bad user
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# interfaces = 192.168.12.2/24 192.168.13.2/24
dns proxy = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
# print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
use client driver = yes
[print$]
path = /var/lib/samba/printers
browseable = yes
write list = @adm root
guest ok = yes
inherit permissions = yes
# Settings suitable for Winbind:
# write list = @"Domain Admins" root
# force group = +@"Domain Admins"
# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably colour)
# on the samba server, so that clients can automatically install them.
# Note that this only works if 'printing' is *not* set to 'cups'
[pdf-gen]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
printing = bsd
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true
# A private directory, usable only by Fred. Note that Fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
[everything]
comment = Patsy's guts
path = /
public = no
writable = yes
printable = no
create mask = 0765
[all]
comments = patsy's guts
path = /
public = no
writeable = yes
printable = no
create mask = 0765
[media]
comment = Media
path = /media
public = no
writable = yes
printable = no
create mask = 0765
[hdd]
comment = SORT 'EM OUT!
path = /hdd
public = no
writable = yes
printable = no
create mask = 0765
[junk]
comment = junk
path = /junk
public = no
writable = yes
printable = no
create mask = 0765
[windows]
comment = windows
path = /windows
public = no
writable = yes
printable = no
create mask = 0765
[iso]
comment = Mounted ISO images
path = /mnt/iso
public = no
writable = no
printable = no
create mask = 0765
[iso2]
comment = Mounted ISO images
path = /mnt/iso2
public = no
writable = no
printable = no
create mask = 0765
[linux]
comment = everything linux
path = /linux
public = no
writable = yes
printable = no
create mask = 0765
[flash]
comment = temp flash drive
path = /mnt/flash
public = no
writable = yes
printable = no
create mask = 0765