Install SAMBA using yum in CentOS7

Source: Internet
Author: User
1. install the package $ sudoyuminstallsambasamba-client2, turn off the firewall (otherwise, this service is not allowed to connect, unlike SSH default is allowed to connect, SAMBA for security reasons, the port is blocked .) $ Sudosystemctlstopfirewalld. service $ sudosetenforce0 & n

1. install the software package

$ Sudo yum install samba-client

2. disable the firewall (otherwise, this service cannot be connected, unlike SSH which allows connections by default. SAMBA is blocked due to security reasons .)

 

$ Sudo systemctl stop firewalld. service

$ Sudo setenforce 0

 

3. configuration

$ Sudo vim/etc/samba/smb. conf

Just open the configuration file. In this way, the user can log on to his/her Directory, which is completely writable, readable, and browsed.

 

[Homes]

Comment = Home Directories

Browseable = yes

Writable = yes

Valid users = % S

Valid users = MYDOMAIN \ % S


4. start the service

 

[Sdx @ localhost samba] $ sudo systemctl restart smb. service

[Sdx @ localhost samba] $ sudo systemctl restart nmb. service

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.