CentOS6.5配置备忘

一. 更新yum的163源

备份配置文件

cp CentOS-Base.repo CentOS-Base.repo.bak

下载163的源

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

重新命名

mv CentOS6-Base-163.repo CentOS-Base.repo

编辑CentOS-Base.repo文件

vim CentOS-Base.repo
:%s/$releasever/6.4/g

执行最后的清理和更新

yum clean all
yum makecache
yum update

二. 配置简单共享的samba

安装samba

yum install samba

修改配置文件

cp smb.conf smb.conf.bak
vim smb.conf
#修改
security = share

#末尾增加
[share]
        comment = Public Share
        path = /home/share
        public = yes
        writable = yes
[root@localhost home]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[share]"
WARNING: The security=share option is deprecated
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
        workgroup = MYGROUP
        server string = Samba Server Version %v
        security = SHARE
        log file = /var/log/samba/log.%m
        max log size = 50
        idmap config * : backend = tdb
        cups options = raw
[homes]
        comment = Home Directories
        read only = No
        browseable = No
[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        print ok = Yes
        browseable = No
[share]
        comment = Public Share
        path = /home/share
        read only = No
        guest ok = Yes
[root@localhost home]# 
[root@localhost home]# service smb restart
关闭 SMB 服务:                                            [失败]
启动 SMB 服务:                                            [确定]

关闭SeLinux(否则会出现没有权限访问的情况)

[root@localhost home]# sestatus -v
SELinux status:                 enabled
SELinuxfs mount:                /selinux
.........
vim /etc/selinux/config 
注释原有项, 新增项如下:
SELINUX=disabled
重启













转载于:https://my.oschina.net/u/1770090/blog/342996

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值