Centos7.3 set up samba server, sharing files and windows
ip centos7.3 is 192.168.11.129
1, install samba service
[root @ localhost ~] # yum -y install samba *
2, create a shared directory and modify permissions and edit the configuration file
[root @ localhost ~] # mkdir -p / Home / Study
[root @ localhost ~] # chmod + the X-U / Home / Study /
modify selinux restrictions
[root @ localhost samba ] # setsebool -P samba_export_all_rw = on
profile /etc//samba/smb.conf, habitual configuration files for backup
[root @ localhost samba] # cp smb.conf smb_back.conf
edit the configuration file
[root @ localhost samba] Vim the smb.conf #
[Study]
path = / Study
browseable, = Yes
Guest OK = NO
Writable = Yes
3, the configuration samba login account
[the root @ localhost ~] # the smbpasswd -a Study
. 4, configure the firewall
[the root @ localhost ~] # --permanent --add-Firewall-Service-cmd = samba
[the root @ localhost ~] # Firewall- -reload cmd
5, set the samba service and restart from the start
[root @ localhost ~] # systemctl restart smb nmb
[root @ localhost ~] # systemctl enable smb nmb
6, in the windows test
Successful configuration