CentOS Build Samba

Source: Internet
Author: User

    1. The meaning of Samba's existence

Sometimes in order to facilitate file sharing between Windows and Linux virtual machines, we generally use samba services to solve, some people will ask, Vmtool can not directly set share folder? But it's a lot more time-consuming to replicate in larger projects, or we want to be lazy and just build on a shared directory without impacting (knowing that Windows and Linux file systems are different), Samba is the perfect solution.

2. Install and start the Samba service

# use Yum to download Samba services yum install samba# start Samba Services service SMB StartService NMB start# add to boot chkconfig SMB--level ONCHKCONFI G NMB--level on# Add a login user useradd yasarsmbpasswd-a yasar# Windows login Run----> enter "\\Samba_serverIP"----> enter username and password # Linux Login (Mount) mount-t cifs-o username=yasar,password=admin123//samba_serverip/share/mnt/

3. Implementing a specified folder share

# Modify Samba config file, add a module vim/etc/samba/smb.conf[shared]comment = # Note Information Path = # directory path to be shared read only = # read-only writeable = # writable public = # Allow Guest user account access to guest OK = # Allow Guest Account Access W Rite list = # Write lists can test the configuration file for system groups and user # is syntax error testparm


This article is from the "Stranded," blog, please be sure to keep this source http://yasar.blog.51cto.com/9120455/1881933

CentOS Build Samba

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.