Linux 上设置共享(学习整理)

1、SAMBA的安装。

执行下面命令:(安装文件自行下载)

rpm -Uvh samba-3.6.9-151.el6.x86_64.rpm
rpm -Uvh samba-client-3.6.9-151.el6.x86_64.rpm
rpm -Uvh samba-common-3.6.9-151.el6.x86_64.rpm
rpm -Uvh samba-winbind-3.6.9-151.el6.x86_64.rpm
rpm -Uvh samba-winbind-clients-3.6.9-151.el6.x86_64.rpm

2、SAMBA服务启动。

service smb stop

service smb start

service smb restart

3、/etc/samba/smb.conf的修改。

[global]
        display charset = utf8
        unix charset = utf8
        dos charset = utf8
        netbios name = F
        server string = F
        security = share
        wide links = yes
        unix extensions = no
[LOG](共享文件夹名称)
        path = /tmp/log
        writeable = yes
        browseable = yes
        guest ok = yes
        create mask = 0777

4、SELinux设定,修改/ect/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

5、设置SAMB自启动。

/etc 下执行setup命令。系统设置中,选择smb自启动。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值