Linux的samba使用记录

来源:互联网 发布:宝能万科大战结局知乎 编辑:程序博客网 时间:2024/05/18 00:41

security = userusername 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 = userusername map = /etc/samba/smbusers

替代

; security = user

在最后添加

[Share]comment = Shared Folder with username and passwordpath = /home/sharepublic = yeswritable = yesvalid users = aUserNamecreate mask = 0700directory mask = 0700force user = nobodyforce group = nogroupavailable = yesbrowseable = yes


接下来,将[global]的配置改为

workgroup = WORKGROUPdisplay charset = UTF-8unix charset = UTF-8dos charset = cp936

step.4 添加新用户(如果有需要)

useradd aUserName

添加密码


step.5 在window下打开\\192.168.1.100\share


~Article end~




原创粉丝点击