RHEL7: Samba文件共享

Samba - Server 配置

1. 安装所需软件

[root@s1 ~]# yum install samba -y
[root@s1 ~]# yum install samba-client -y
[root@s1 ~]# yum install policycoreutils-python

2. 创建共享目录

[root@s1 ~]# mkdir /sharedpath
[root@s1 ~]# semanage fcontext -a -t samba_share_t '/sharedpath(/.*)?'
[root@s1 ~]# restorecon -vvFR /sharedpath/
restorecon reset /sharedpath context unconfined_u:object_r:default_t:s0->system_u:object_r:samba_share_t:s0

继续阅读“RHEL7: Samba文件共享”