centos 配置 samba 与windows共享文件夹
2020-11-24 08:21
标签:style class ext color c width yum
install samba linux
挂载 linux下共享的文件夹 sudo
mount -t cifs -o username="nobody",password="" //192.168.1.168/public
/mnt/samba(前提条件是win下的目录已经共享了) centos 配置 samba 与windows共享文件夹,搜素材,soscw.com centos 配置 samba 与windows共享文件夹 标签:style class ext color c width 原文地址:http://www.cnblogs.com/xingmeng/p/3718243.html
/etc/samba/smb.conf
directory
mask = 0777 ← 指定新建目录的属性(以下4行)
force
directory mode = 0777
directory
security mask = 0777
force
directory security mode = 0777
create
mask = 0777 ← 指定新建文件的属性(以下4行)
force
create mode = 0777
security
mask = 0777
force
security mode = 0777
workgroup
= MYGROUP
security
= share //这里要改
passdb
backend = tdbsam
文
[public]
comment
= Public Stuff
path
= /home/samba
public
= yes
writable
= yes
chown
-R nobody /home/samba
chmod
777 /home/samba
设置防火墙允许139端口
上一篇:windows服务安装及卸载
文章标题:centos 配置 samba 与windows共享文件夹
文章链接:http://soscw.com/index.php/essay/22349.html