service smb status
检查是否有samba服务器
如果没有直接
yum install samba
安装好以后编辑这个文件
vim /etc/samba/smb.conf
设置
security = share
和最后几行增加
基本上全部去掉注释,设置下path就可以了
# A publicly accessible directory, but read only, except for people in
# the "staff" group
[public]
comment = Public Stuff
path = /share
public = yes
writable = yes
printable = no
write list = +staff
设置下目录权限
chmod 777 /share
Win下面设置:
Computer下面点右键add a network location
添加地址
例如\\192.168.1.10\public
大功告成!很简单吧!
没有评论:
发表评论