RedHat 6.2 中的 samba 服务端配置 方法

1、              安装samba-3.5.10-114.el6.i686 包;

 

2、              修改配置文件:/etc/samba/smb.conf

    在配置文件末尾增加 如下内容, 例如:

    [root]

            path = /

            writable = yes

            valid users = root

 

3、              使用smbpasswd命令增加samba用户:

    如下:

    [root@CentOS ~]# smbpasswd -a root

    New SMB password:

    Retype new SMB password:

 

4、              配置samba服务自动启动:

      chkconfig smb on

 

5、              重启samba服务:

      [root@CentOS ~]# service smb restart

      Shutting down SMB services:                                [  OK  ]

      Starting SMB services:                                     [  OK  ]

 

6、              停止或配置iptables,以开放客户端连接,方法如下(停止iptables服务):

      service iptables stop

      并关闭自动启动功能:

      chkconfig iptables off

 

7、              为客户端提供写权限,方法:

      修改/etc/selinux/config配置文件

      把SELINUX=enforcing

      修改为SELINUX=disabled

posted @ 2012-06-20 22:40  ifotuo  阅读(379)  评论(0编辑  收藏  举报