How to set the samba service to linux, realize windows, linux mutual copy files

A, samba service description and effects:

samba is based on the SMB protocol (ServerMessage Block, block information services) open source software, samba may be trademarks of the SMB protocol. SMB is a Linux, UNIX system can be used on a protocol to share files and resources such as printers, this protocol is based on Client \ Server type of agreement, Client terminal can access shared resources on the (server) Server via SMB. When Windows is Client, CentOS server, Samba can be achieved through access to Linux resources window, to achieve data exchange between the two systems.

Linux for development is a very good system, but not as good as human-friendly windows, I usually sourceinsight edit the code on the windows, and then compile and run on the Linux side, and often need to audio and video from the end of each copy of Linux and windows , this time Samba becomes very convenient.

 

Second, the installation step (Environment ubuntu 18.04):

1. Install the software

apt-get install -y samba

2. Create a user name xxx, yyy password

3. Modify the Configuration

vim /etc/samba/smb.conf

Increased configuration;

And check the configuration is correct:

testparm /etc/samba/smb.conf

4. Restart samba

/etc/init.d/smbd restart

5. Close the firewall

ufw disable

6. Add the accounts to the samba user database

smbpasswd -a xxx

 

 7.done

 

 

 

 

Reference documents:

https://blog.csdn.net/weixin_40806910/article/details/81917077

Guess you like

Origin www.cnblogs.com/longzhiwen/p/11487567.html