CentOS7安装配置Samba
2017-08-05 16:57
417 查看
转载自:https://www.howtoforge.com/samba-server-installation-and-configuration-on-centos-7
First I will explain the methodology to install the samba with the anonymous sharing. To install samba run,
From a windows machine just browse the folder and try to create a text file, but you will get an error of permission denied.
Check the permission for the shared folder.
To allow anonymous user give the permissions as follows:
Further, we need to allow the SELinux for the samba configuration as follows:
Now anonymous user can browse & create the folder contents.
First I will explain the methodology to install the samba with the anonymous sharing. To install samba run,
yum install samba samba-client samba-commonNow to configure samba edit the file /etc/samba/smb.conf before making changes I will make the backup of original file as /etc/samba/smb.conf.bak
mv /etc/samba/smb.conf /etc/samba/smb.conf.bakFurther give the entries like this
vi /etc/samba/smb.conf
[global] workgroup = WORKGROUP server string = Samba Server %v netbios name = centos security = user map to guest = bad user dns proxy = no #============================ Share Definitions ============================== [Anonymous] path = /samba/anonymous browsable =yes writable = yes guest ok = yes read only = no
mkdir -p /samba/anonymous systemctl enable smb.service systemctl enable nmb.service systemctl restart smb.service systemctl restart nmb.serviceFurther CentOS 7.0 Firewall-cmd will block the samba access, to get rid of that we will run:
firewall-cmd --permanent --zone=public --add-service=samba
firewall-cmd --reloadNow you can access the Centos 7.0 sharing in windows as follows, go to the Run prompt
From a windows machine just browse the folder and try to create a text file, but you will get an error of permission denied.
Check the permission for the shared folder.
To allow anonymous user give the permissions as follows:
cd /samba
chmod -R 0755 anonymous/ chown -R nobody:nobody anonymous/
Further, we need to allow the SELinux for the samba configuration as follows:
chcon -t samba_share_t anonymous/
Now anonymous user can browse & create the folder contents.
相关文章推荐
- CentOS7下Samba的安装与配置
- centos7 samba安装与配置
- Centos7安装配置Samba服务
- Centos7安装samba及配置,windows连接共享
- Ubuntu中Samba的安装配置和使用[图文]
- 【安装zabbix3.4之1-Nginx安装】CentOS7安装Nginx及配置
- CentOS7中的安装与配置Java Jdk 1.8
- redhat 安装配置samba实现win共享linux主机目录
- linux下samba服务的安装及配置
- CentOs7安装配置Iptables防火墙
- CentOS7 64位下MySQL5.7安装与配置(YUM)
- centOS7安装并配置jdk1.8
- 安装centos7并配置上网和安装ftp
- CentOS7下使用yum快速安装配置oracle数据库
- CentOS7 64位下MySQL5.7安装与配置
- Centos7安装Samba 共享文件夹
- CentOS7下使用yum快速安装配置oracle数据库
- linux下Samba的安装和配置
- Samba服务安装与配置
- 基于CentOS7安装DNS服务器及配置