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 = cp936step.4 添加新用户(如果有需要)
useradd aUserName
添加密码
step.5 在window下打开\\192.168.1.100\share
~Article end~
本文详细介绍了如何通过Samba在Linux环境下搭建文件共享服务。包括安装Samba软件包、备份及编辑配置文件、添加用户及密码设置等步骤,并提供了一个具体的示例配置。
561

被折叠的 条评论
为什么被折叠?



