【转】centos 6.4 samba 安装配置

本文详细介绍了如何在Linux环境下搭建Samba服务,包括关闭防火墙和SELinux、安装Samba软件包、创建共享目录、修改Samba配置文件及创建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

转载于:https://www.cnblogs.com/yuliyang/p/3583408.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值