zoukankan      html  css  js  c++  java
  • 【转】centos 6.4 samba 安装配置

      关掉防火墙

        service iptables stop 

        chkconfig iptables off (永久关闭防火墙)

        关闭SELinux

        vi /etc/sysconfig/selinux
        把 SELINUX=enforcing 修改为SELINUX= disabled 

        退出保存,并且重启

        [root@bogon lee]# yum install samba smbfs smbclient
    二    创建目录
        [lee@bogon ~]$ mkdir share
        [lee@bogon ~]$ chmod 777 /home/lee/share/
    三    修改samba配置文件
        [root@bogon lee]# cp /etc/samba/smb.conf smb_backup.conf
        [root@bogon lee]# vi /etc/samba/smb.conf                 
        将下面部分加入到smb.conf 末尾
            [share]
     path = /share
     available = yes
     browseable = yes
     public = yes
     writable = yes
    四    创建samba账户
        [root@bogon lee]# touch /etc/samba/smbpasswd
        [root@bogon lee]# smbpasswd -a lee
    如果还不能访问,尝试修改/etc/samba/smb.conf
    # ----------------------- Standalone Server Options ------------------------
    # Scurity can be set to user, share(deprecated) or server(deprecated)
    # Backend to store user information in. New installations should
    # use either tdbsam or ldapsam. smbpasswd is available for backwards
    # compatibility. tdbsam requires no further configuration.
             security = user
    ==>  security = share
    其他细节参考:
    http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    认识Java数组(一)
    Java之定时任务详解
    Java三大特征之多态(三)
    Java三大特征之继承(二)
    Java三大特征之封装(一)
    eclipse常用快捷键汇总
    JDK动态代理
    Java代理模式——静态代理模式
    CRISPR/Cas9基因敲除原理及实验建议
    MicroRNA 详解
  • 原文地址:https://www.cnblogs.com/yuliyang/p/3583408.html
Copyright © 2011-2022 走看看