荣耀之链论坛

 找回密码
 立即注册
搜索
查看: 2653|回复: 0

centos搭建samba

[复制链接]

1326

主题

2373

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
10267
发表于 2015-11-10 18:51 | 显示全部楼层 |阅读模式
http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html

安装samba
yum install samba samba-client samba-swat



建立文件夹
mkdir /gongxiang
改变所有者
chown -R nobody:nobody gongxiang



vi /etc/samba/smb.conf


[gongxiang]
comment = gongxiang
path = /gongxiang
public = yes
writable = yes

检查配置文件
testparm

启动服务
service smb start

防火墙放行445端口

其他centos挂载网络上共享文件的命令

mount -t cifs //10.252.126.51/gongxiang /home/gongxiang -o username=
就这样填

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

荣耀之链

GMT+8, 2025-6-18 04:46 , Processed in 0.011516 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表