Linux Installation and Configuration Samba

Source: Internet
Author: User

Environment: CentOs6.5


Samba is a remote communication service that enables the operation of files on a Linux server in a Windows environment, after all, for most people, the developer of the win editor such as Sublime, Vscode, is more efficient than vim.


1. Installation

[Email protected] samba]# yum-y install samba Samba-common samba-client

You can check the installation situation:

# Rpm-qa | grep Samba


The path to Samba is under:/ETC/INIT.D/SMB,

The command Start/stop/restart can be used for the corresponding operation

You can also use

Service SMB Status

To see the current Samba working status


But we want Samba to be able to boot from start-up at boot time and execute this command

# chkconfig--level SMB on


2. Configuration

Open configuration file:/etc/samba/smb.conf

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/8D/FD/wKioL1iysJqASVREAAAjzxcWVuM242.png "title=" 1.png "alt=" Wkiol1iysjqasvreaaajzxcwvum242.png "/>

This can actually do a lot of settings, but I just want to achieve the entire user directory sharing, so just a simple modification:

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8D/FF/wKiom1iysXughlqPAAAcejoY6qc464.png "title=" 2.png "alt=" Wkiom1iysxughlqpaaacejoy6qc464.png "/>


3. Add Users

With the command

Smbpasswd-a XX (user name)

Then enter the password


4. Connection

Windows File Manager Address bar input \\xx.xx.xx.xx

You will then be prompted to enter your user name and password

If this step does not respond, you should consider the Linux server firewall

Service Iptables Stop


Linux Installation and Configuration Samba

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.