[global] workgroup = MYGROUP security = user #============================ Share Definitions ============================== [share] path = /share browsable =yes writable = yes guest ok = yes valid users = hbets01,root create mask = 0664 directory mask = 0775 [abc] comment = abc path = /share/td/abc browseable = yes guest ok = yes writable = yes valid users = cstc,root create mask = 0664 directory mask = 0775 [data] comment = data path = /share/data browseable = yes guest ok = yes writable = yes valid users = xusj,root create mask = 0664 directory mask = 0775 测试cmb.conf配置是否正确 testparm 192.168.1.10 smb提供的用户密码: mount -t cifs -o username=xusj,password=xusj //192.168.1.10/share /share [root@xusj ~]# useradd -s /sbin/nologin xusj01 [root@xusj ~]# smbpasswd -a xusj01
********************************************
阿里云windows服务器默认netbios服务和TCP/IP没有勾引netbios,因此需要确保该服务开启才可以正常访问到linux提供的samba服务。
********************************************
本文出自 “少犟” 博客,请务必保留此出处http://xushaojie.blog.51cto.com/6205370/1765727
原文地址:http://xushaojie.blog.51cto.com/6205370/1765727