Chinaunix首页 | 论坛 | 博客
  • 博客访问: 946454
  • 博文数量: 116
  • 博客积分: 3923
  • 博客等级: 中校
  • 技术积分: 1337
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-23 01:22
文章分类

全部博文(116)

文章存档

2013年(1)

2012年(17)

2011年(69)

2009年(29)

分类: LINUX

2011-10-21 15:19:51

今天终于把sambasvn使用起来,这样就可以通过windowsTortoiseSVN软件管理代码,方便多了,这里先说一下该死的Federa 11samba搭建情况,主要是要关防火墙或关闭selinux这个该死的安全管理软件,关闭后一些都是光明的。。。。。。

1)关闭防火墙
2)关闭selinux, 方法如下:

修改文件:/etc/selinux/config

  1. # This file controls the state of SELinux on the system.
  2. # SELINUX= can take one of these three values:
  3. # enforcing - SELinux security policy is enforced.
  4. # permissive - SELinux prints warnings instead of enforcing.
  5. # disabled - SELinux is fully disabled.
  6. SELINUX=disabled
  7. # SELINUXTYPE= type of policy in use. Possible values are:
  8. # targeted - Only targeted network daemons are protected.
  9. # strict - Full SELinux protection.
  10. SELINUXTYPE=targeted


3)yum -y install samba   (yum search samba 也很有用)

Samba的配置如下:

file: /etc/samba/smb.conf

  1. [global]
  2. workgroup = WORKGROUP
  3. netbios name = smb
  4. server string = smb
  5. security = share

  6. [share]
  7. path = /home/share
  8. writeable = yes
  9. browseable = yes
  10. guest ok = yes
  11. public = yes
  12. # create mask = 0000
  13. # directory mask = 0755
  14. delete readonly = yes


4)添加开机启动服务器

file: /etc/rc.d/rc.local

  1. #!/bin/sh
  2. #

  3. touch /var/lock/subsys/local
  4. service sshd restart
  5. service smb restart
  6. service nmb restart


5)打完 收工~~~~



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