Sabma 4 config

$ testparm -S $ adduser share

# Global parameters
[global]
server string = %h NAS Server
workgroup = HOME
os level = 99
log file = /var/log/samba/log.%m
max log size = 1000
panic action = /usr/share/samba/panic-action %d
usershare allow guests = Yes
load printers = No
name resolve order = wins host bcast
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
security = USER
server role = standalone server
unix password sync = Yes
username map = /etc/samba/smbusers
dns proxy = No
wins support = Yes
idmap config * : backend = tdb
acl allow execute always = Yes
invalid users = root bin daemon adm sync shutdown halt mail news uucp operator
[User]
comment = Home Directories
path = /home/%U
read only = No
valid users = %U
[Home]
path = /home
comment = Home Directories
valid users = share
read only = no
browseable = yes
available = yes
create mask = 0664
directory mask = 0775
force user = share
force group = www-data
[DISK1]
comment = mediafiles
path = /mnt/1
create mask = 0664
directory mask = 0775
guest ok = Yes
read only = No
[DISK2]
comment = mediafiles
path = /mnt/2
create mask = 0664
directory mask = 0775
guest ok = Yes
read only = No