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