Chinaunix首页 | 论坛 | 博客
  • 博客访问: 438795
  • 博文数量: 185
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 681
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-06 21:45
个人简介

为梦而战

文章分类

全部博文(185)

文章存档

2016年(3)

2015年(103)

2014年(79)

我的朋友

分类: LINUX

2015-02-13 10:18:12

修改

1、关闭防火墙

# /etc/init.d/iptables stop

# /etc/init.d/ip6tables stop

 

2、禁用selinux

# vi /etc/selinux/config

SELINUX=disabled

 

3# vi /etc/samba/smb.conf

添加

[home]

        comment = *

        path = /home

        writeable = yes

;       browseable = yes

        guest ok = yes

修改

                   security = share

 

4、修改/home的访问权限

         chmod -R 777 /home

 

5service smb restart

 

通常上述5个步骤已经可以成功搭建samba,如果还是不行,执行下面操作

6chkconfig --levels 2345 smb off

chkconfig --levels 2345 smb on

chkconfig --levels 2345 iptables on

chkconfig --levels 2345 ip6tables on

reboot

阅读(412) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~