- Install samba sampek selesai, trus edit smb.conf, klo punyaku kaya begini (silahkan diutek2 sendiri sesuai selera):
log file = /var/log/samba/log.%m
log file = /var/log/Samba-%m.log
[global]
workgroup = MSHOME
security = share
server string = Data Server
#local master = yes
#os level = 65
#domain master = yes
#preferred master = yes
#null passwords = no
#hide unreadable = yes
hide dot files = yes
printcap name = /etc/printcap
[editor]
browseable = yes
writable = yes
path = /samba/editor
valid users = editor
security = USER
encrypt passwords = yes
smb passwd file = /usr/local/etc/samba/smbpasswd
username map = /etc/passwd
[bola]
browseable = yes
writable = yes
path = /samba/editor
valid users = editor
security = USER
encrypt passwords = yes
smb passwd file = /usr/local/etc/samba/smbpasswd
username map = /etc/passwd
- Buat user editor & bola (akses nologin)
- Buat group editor & bola
#pw groupadd editor
#pw groupadd bola
- Buat password samba untk user editor & bola
#smbpasswrd -a editor
#smbpasswrd -a bola
- Masukkan user bola & editor ke group
#pw usermod bola -G bola
#pw usermod editor -G editor
- Rubah kepimilkan folder masing2
#chmod -R bola:bola /samba/bola
#chmod -R editor:editor /samba/editor
- jalankan testparm dulu buat ngecek konfigurasi
- restart samba
- silahkan dicacimaki dan dipisuhi kalau tulisanku ada yg salah