Install the Samba service on CentOS7

Source: Internet
Author: User

1. Use the yum tool for installation on a machine that can be connected to the internet. If the machine is not connected to the Internet, mount the system disk for installation.

# Yum install samba-client

The dependent packages samba-common, samba-winbind-clients, and libsmbclient are automatically installed.

2. Check the installation status.

# Rpm-qa | grep samba

3. Installation package description

Samba-common-4.1.1-37.el7_0.x86_64 // mainly provides the setup file and setup file syntax validation program testparm for the samba Server
Samba-client-4.1.1-37.el7_0.x86_64 // client software, mainly provides linux host as the client, the required tool instruction set
Samba-libs-4.1.1-37.el7_0.x86_64
Samba-4.1.1-37.el7_0.x86_64 // server software, mainly providing samba server daemon, sharing documents, log rotation, boot default options

After the Samba server is installed, the configuration file directory/etc/samba and other samba executable command tools,/etc/samba/smb will be generated. conf is the core configuration file of samba,/usr/lib/systemd/system/smb. service is the startup file

4. Start the Samba Server

# Systemctl enable smb. service

# Systemctl start smb. service

5. Set permissions

To enable anonymous users to download or upload shared files, grant the directory the "nobody" permission.

# Chown-R nobody: nobody samba/

Install the Samba service on CentOS7

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.