apt-get install samba samba-common
sudo service smbd status
sudo service smbd restart
sudo gedit
chmod -R 777 Unduhan
groupadd manager
adduser kepala
adduser wakil
smbpasswd -a kepala
smbpasswd -a wakil
usermod -G manager kepala
[global]
workgroup = WORKGROUP
# name resolve order = bcast host
server string = luluk
#lanman auth = no
#ntlm auth = no
#wins support = yes
#local master = yes
#preferred master = yes
security = user
map to guest = bad user
# wins support = no
dns proxy = no
# guest account = nobody
# interfaces = 127.0.0.0/8 eth0
bind interfaces only = yes
#client min protocol = NT1
log file = /var/log/samba/log.%m
max log size = 100
syslog = 0
# server role = standalone server
# passdb backend = tdbsam
# obey pam restrictions = yes
#unix password sync = yes
# passwd program = /usr/bin/passwd %u
# passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
# pam password change = yes
; usershare max shares = 100
usershare allow guests = yes
[home-omah]
path = /home/
writeable = yes
hide unreadable = yes
; browseable = yes
guest ok = yes
create mask = 0777
comment = untuk On-Air
[Home]
comment = Folder Dokumen server
path = /home/raharjo
writeable = yes
create mask = 0777
guest ok = yes
; browseable = yes
[Unduhan]
comment = Untuk Share lewat Web
path = /home/raharjo/Unduhan
writeable = yes
create mask = 0777
guest ok = no
valid users = @manager
; browseable = yes
[Unduhan-write]
comment = Untuk Share lewat Web
path = /home/raharjo/Unduhan
writeable = yes
create mask = 775
force create mode = 775
security mask = 775
force security mode = 775
guest ok = yes
valid user = @manager
; browseable = yes
[Unduhan664]
comment = Untuk Share lewat Web
path = /home/raharjo/Unduhan
# writeable =
create mask = 664
force create mode = 664
security mask = 664
force security mode = 664
guest ok = yes
valid user = @manager
; browseable = yes
[publik]
comment = Untuk iklan
path = /home/raharjo/Publik
read only = no
create mask = 0777
guest ok = yes
; browseable = yes
; write list = root, @lpadmin