1. 在windows中如何用samba共享文件windows
按装 yum install -y samba samba-client浏览器
打开samba的配置文件/etc/samba/smb.conf 在[global]部分测试
把:it
MYGROUP 改为 WORKGROUPio
把:table
security = user 改为 security = share test
最后在配置文件中加入以下配置cli
[share] comment = share all path = /tmp/samba browseable = yes public = yes writable = no
建立测试目录:百度
mkdir /tmp/samba chmod 777 /tmp/samba touch /tmp/samba/sharefiles echo "111111" > /tmp/samba/sharefiles
启动samba服务:配置
/etc/init.d/smb start
测试:
首先测试你配置的smb.conf是否正确,用下面的命令:
testparm
你应该会看到一个警告:WARNING: The security=share option is deprecated, 不过影响不大,无需管它。若是没有错误,则在你的windows机器上的浏览器中输入:
file://IP/share
看是否能访问到sharefiles
后记:有密码访问,百度一下,你就知道