samba服务winxp总不能连接

    1、建linux用户、组

         groupadd legender

         useradd  -g legender -d /home2/legender -s /sbin/nologin legender

    2、建samba用户、设置密码

         smbpasswd -a legender

    3、配置smb.conf

         vi  /etc/samba/smb.conf

         加入

[global]
        workgroup = legender
        netbios name=legender
        security = share
        username map = /etc/samba/smbusers
;       server string = samba 3.0.33-3.14.el5
;       encrypt passwords = yes
        guest account = legender

[legender]
        path = /home2/legender
        writable = yes
        browseable = yes
        valid users=legender
        encrypt passwords=yes
        create mask=0700
        directory mask=0700
        security=user
    4、重启服务

    /etc/init.d/smb stop

        /etc/init.d/smb start

    设置好象没问题,可是winxp去连接总是提示找不到路径,偶然发现linux服务器右上有个Selinux提示,打开SeLinux Management,设置改为disable,重启linux,一切OK!

   

你可能感兴趣的:(技术问题解决)