CentOS 7 samba server configuration, centossamba

Source: Internet
Author: User

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 :*********

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.