security = user
username map = /etc/samba/smbusers
记录一下:
step.1安装samba
apt-get install samba smbfs sbmclient
step.2 备份文件
cp /etc/samba/smb.conf /etc/samba/smb.com.bak
step.3 配置文件
gedit /etc/samba/smb.conf
将以下
security = user
username map = /etc/samba/smbusers
替代
; security = user
在最后添加
[Share]
comment = Shared Folder with username and password
path = /home/share
public = yes
writable = yes
valid users = aUserName
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
available = yes
browseable = yes
workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
step.4 添加新用户(如果有需要)
useradd aUserName
添加密码
step.5 在window下打开\\192.168.1.100\share
~Article end~