#apt-get install samba
#mkdir /opt/samba
#mkdir 777 /opt/samba
#nano /etc/samba/smb.conf
----------smb.conf內容---------
security = user <--取消#註解
#最下面加入
[samba]
comment = Welcome Ubuntu!
path = /opt/samba
browseable = yes
writable = yes
create mask = 0777
directory mask = 0777
public = yes
valid users = kt
force user = kt
force group = kt
available = yes
workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp950
--------------------------
#testparm //語法驗證
#/etc/init.d/smbd restart //重啟(註1)
#smbpasswd -a kt //修改密碼
samba密碼與linux系統user密碼不是同一個來源
//writelist = 使用者, @群組
註1:CentOS 7重啟samba
#service smb start
沒有留言:
張貼留言