天天看點

Linux samba 建立共享盤

1.安裝samba

sudo apt-get install samba

2.在/home下建立檔案夾用以共享

home$ sudo mkdir share

home$ sudo chmod 777 share

3. /etc/samba/smb.conf 編輯smb.conf 檔案

[Share]

comment = Shared Folder

path = /home/share

public = yes

writeable = yes

#valid users = friend

create mask = 0700

directory mask = 0700

#force user = nobody

#force group = nogroup

available = yes

browseable = yes

security = user

map to guest = bad user

4.再搜尋[global]

在workgroup = workgroup下面增加如下:

display charset = UTF-8

unix charset = UTF-8

dos charset = cp936

繼續閱讀