CentOS下samba的配置

自用的,就不做过多的权限,能用就成

<?php

# yum安装samba
yum install samba samba-common samba-client -y

# 添加用户(系统用户设置个密码就OK了)
smbpasswd -a root

# 配置samba
cd /etc/samba
mv smb.conf smb.conf.bak
vim smb.conf

# 内容如下
[global]
workgroup = WORKGROUP
netbios name = Devin-PC
server string = SambaServer
security = user
[wwwroot]
path = /data/www
browseable = yes
writable = yes
force user = apache
force group = apache

# 更改目录用户组
chown -R apache:apache /data/www

 

posted @ 2015-08-20 13:21  smismile  阅读(153)  评论(0编辑  收藏  举报