Cari Blog Ini

Minggu, 22 April 2012

instalasi Samba Centos 6

[root@lan ~]#yum -y install samba
[root@lan ~]#mkdir /home/share
[root@lan ~]#chmod 777 /home/share
[root@lan ~]#vi /etc/samba/smb.conf

# near line 58: add
unix charset = UTF-8
dos charset = CP932
# line 75: change (Windows' default)
workgroup =WORKGROUP

# line 81: uncomment and change IP address you allow
hosts allow = 127.10.0.0.

# line 102: change (no auth)
security =share

# add at the bottom

[Share]
 path = /home/share
 writable = yes
 guest ok = yes
 guest only = yes
 create mode = 0777
 directory mode = 0777
 share modes = yes

# warn if some people access to a file
[root@lan ~]#/etc/rc.d/init.d/smb start

Starting SMB services:     [  OK  ]

[root@lan ~]#/etc/rc.d/init.d/nmb start

Starting NMB services:     [  OK  ]

[root@lan ~]#chkconfig smb on

[root@lan ~]#chkconfig nmb on




Tambahan
Note: veto files berfungsi agar file-file dengan ekstensi tertentu tidak bisa disimpan, efektif untuk minimalisir penyebaran virus (windows). Silahkan disesuaikan dg kebutuhan.

contoh :


[Share]
 path = /home/share
 writable = yes
 guest ok = yes
 guest only = yes
 create mode = 0777
 directory mode = 0777
 share modes = yes
 veto files = /*.exe/*.scr/*.com/*.bat/*.inf/*.ENCRYPT/*.db/*.ini/

Tidak ada komentar:

Posting Komentar