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