CentOS 7 samba server configuration, centossamba
Samba is a file sharing service software on linux. It is equivalent to a shared folder on Windows, and must be in the same network segment.
The current version is 4.4.4. Okay! The following describes how to install and configure it. here we go!
1. installation:
[Root @ localhost ~] # Yum install samba-client samba-common
2. Create a shared directory:
[Root @ localhost ~] # Mkdir/home/SMBShare/
[Root @ localhost SMBShare] # chmod-R 777/home/SMBShare/
[Root @ localhost SMBShare] # chown-R smbtest: smbgrp/home/SMBShare/
[Root @ localhost SMBShare] # chcon-t samba_assist_t/home/SMBShare/
3. Create an accessible user:
[Root @ localhost SMBShare] # groupadd smbgrp
[Root @ localhost SMBShare] # useradd-G smbgrp smbtest
[Root @ localhost SMBShare] # smbpasswd-a smbtest
New SMB password:
Retype new SMB password:
Added user smbtest.
4. Modify and save the configuration file:
[Global]
Workgroup = WORKGROUP
Server string = Samba Server % v
Netbios name = centos
Security = user
Map to guest = bad user
Dns proxy = no
[Mobile]
Path =/home/SMBShare
Valid users = @ smbgrp
Guest OK = no
Writeable = yes
Browsable = yes
5. Access test:
On windows, enter \ centos, and then enter the account: smbtest password :*********