配置samba服务--centos7.x
2017-08-13 17:33
267 查看
安装 samba rpm包
samba.x86_64 : Server and Client software to interoperate with Windows machines
查看selinux
getenforce
临时关闭selinux
setenforce 0
永久关闭selinux ,修改/etc/selinux/config配置文件中SELINUX 为 disable
SELINUX=disabled
关闭防火墙
systemctl stop firewalld.service
禁止防火墙开机自启动
systemctl disable firewalld.service
配置samba共享目录
[samba_share_for_windows]
comment = Network Logon Service
path = /home/samba_share
writable = yes
browseable = yes
guest ok = yes
smbpasswd
来添加Samba用户,并设置密码。原理是通过读取/etc/passwd文件中存在的用户名
[root@localhost
samba_share]# smbpasswd -a root
New SMB password:
Retype new SMB password:
[root@localhost samba_share]#
增加samba账户对共享目录的而访问权限
[root@localhost
samba_share]# chown root:root /home/samba_share
重启samba服务即可
systemctl
restart smb
samba.x86_64 : Server and Client software to interoperate with Windows machines
查看selinux
getenforce
临时关闭selinux
setenforce 0
永久关闭selinux ,修改/etc/selinux/config配置文件中SELINUX 为 disable
SELINUX=disabled
关闭防火墙
systemctl stop firewalld.service
禁止防火墙开机自启动
systemctl disable firewalld.service
配置samba共享目录
[samba_share_for_windows]
comment = Network Logon Service
path = /home/samba_share
writable = yes
browseable = yes
guest ok = yes
smbpasswd
来添加Samba用户,并设置密码。原理是通过读取/etc/passwd文件中存在的用户名
[root@localhost
samba_share]# smbpasswd -a root
New SMB password:
Retype new SMB password:
[root@localhost samba_share]#
增加samba账户对共享目录的而访问权限
[root@localhost
samba_share]# chown root:root /home/samba_share
重启samba服务即可
systemctl
restart smb
相关文章推荐
- net use命令解决配置samba服务在windows 7下测试问题
- ubuntu14.04 为例 samba服务配置
- Linux存储实验五:Samba服务共享文件权限配置
- ubuntu 12.04 简单配置samba服务,实现主机与虚拟机互通
- Fedora 17 开启samba服务配置
- Redhat Samba服务配置
- 菜鸟配置SAMBA服务之3
- CentOS7配置samba共享服务
- ubuntu 12.04 配置samba共享服务 实践篇更新中
- linux 简单配置samba 服务
- linux下Samba服务配置与安装
- 关于Linux Samba服务统一配置多个用户方法
- samba服务配置
- Linux配置Samba服务
- suse11.3下samba服务的配置
- ubuntu下的最简单的samba服务配置
- Centos配置samba服务
- Linux上Samba服务的详细配置
- Fedora8中Samba服务的配置
- 编写安装配置ftp-samba服务脚本