Centos7.3 set up samba server, shared files and windows

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 *
Centos7.3 set up samba server, shared files and windows
Centos7.3 set up samba server, shared files and windows

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
Centos7.3 set up samba server, shared files and windows

3, the configuration samba login account
[the root @ localhost ~] # the smbpasswd -a Study
Centos7.3 set up samba server, shared files and windows
. 4, configure the firewall
[the root @ localhost ~] # --permanent --add-Firewall-Service-cmd = samba
[the root @ localhost ~] # Firewall- -reload cmd
Centos7.3 set up samba server, shared files and windows
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
Centos7.3 set up samba server, shared files and windows
Centos7.3 set up samba server, shared files and windows
Centos7.3 set up samba server, shared files and windows

Successful configuration

Guess you like

Origin blog.51cto.com/11293100/2401943