安装并配置samba

来源:互联网 发布:东珈网络精英 编辑:程序博客网 时间:2024/05/16 17:03
1.安装:
       yum install samba
2.添加samba服务器登陆用户密码
     smbpasswd -a win
3.配置samba服务
     vim /etc/samba/smb.conf
    添加如下:
    security = share
   [root]
             comment = Root Directories
             Path = /
             browseable = yes
             writeable = yes
             valid users = win
4.重启网络
         service network restart
5.关闭linux防火墙
     临时关闭:service iptables stop
     永久关闭:chkconfig iptables off
6.关闭内核防火墙
    临时关闭:setenforse  0
    永久关闭:vim /etc/sysconfig/selinux  或  vim /etc/selinux/config 
                     将SELINUX = enforcing
                  改为
                   SELINUX = disabled
7.重启samba
         service smb restart
        开机启动smb:chkconfig --level 35 smb on
1 0