今天终于把samba和svn使用起来,这样就可以通过windows的TortoiseSVN软件管理代码,方便多了,这里先说一下该死的Federa 11的samba搭建情况,主要是要关防火墙或关闭selinux这个该死的安全管理软件,关闭后一些都是光明的。。。。。。
1)关闭防火墙
2)关闭selinux, 方法如下:
修改文件:/etc/selinux/config
- # This file controls the state of SELinux on the system.
-
# SELINUX= can take one of these three values:
-
# enforcing - SELinux security policy is enforced.
-
# permissive - SELinux prints warnings instead of enforcing.
-
# disabled - SELinux is fully disabled.
-
SELINUX=disabled
-
# SELINUXTYPE= type of policy in use. Possible values are:
-
# targeted - Only targeted network daemons are protected.
-
# strict - Full SELinux protection.
-
SELINUXTYPE=targeted
3)yum -y install samba (yum search samba 也很有用)
Samba的配置如下:
file: /etc/samba/smb.conf
- [global]
-
workgroup = WORKGROUP
-
netbios name = smb
-
server string = smb
-
security = share
-
-
[share]
-
path = /home/share
-
writeable = yes
-
browseable = yes
-
guest ok = yes
-
public = yes
-
# create mask = 0000
-
# directory mask = 0755
-
delete readonly = yes
4)添加开机启动服务器
file: /etc/rc.d/rc.local
- #!/bin/sh
-
#
-
-
touch /var/lock/subsys/local
-
service sshd restart
-
service smb restart
-
service nmb restart
5)打完 收工~~~~
阅读(2837) | 评论(0) | 转发(0) |