[Ubuntu] Ubuntu sets up the Samba service and ubuntutu16.04
1. Samba Introduction
Samba is a free software that implements the SMB protocol on Linux and UNIX systems. It consists of servers and client programs. Server Messages Block (SMB) is a communication protocol used to share files and printers on a LAN, it provides sharing services for files, printers, and other resources between different computers in the LAN. The SMB protocol is a client/server protocol that allows a client to access shared file systems, printers, and other resources on the server. By setting "NetBIOS over TCP/IP", Samba can not only share resources with local network hosts, but also share resources with computers around the world.
2. Installation of Samba
Deng @ deng :~ $ Sudo apt-get install samba
3. Disable the Firewall
Deng @ deng :~ $ Sudo service ufw stop
4. Configure the smb. conf file
A) Go to the directory where the configuration file is located and switch to the root user.
B) back up the configuration file to prevent improper operations
C) modify the configuration file as follows:
D) add a root user for Samba
The root user I use here, of course, can also use other users who can log on to the system
5. Restart the Samba service.
6. Test
Test in windows as follows:
Username: root
Password 123456
Enter "OK" and the following result is displayed:
Indicates that Samba has been set up OK.
7. MAP network drive
8. Results After ing the network drive
Facilitate future access to the Samba server