YeNiE Blog

Maret 22, 2010

samba dengan security user per folder

Filed under: Celoteh Atmo — geniqh @ 7:02 am

- 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 :D

Tinggalkan sebuah Komentar »

Belum ada komentar.

RSS umpan untuk komentar-komentar dalam tulisan ini. URI Lacak Balik

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Tema: Banana Smoothie. Blog pada WordPress.com.

Ikuti

Get every new post delivered to your Inbox.