[Ubuntu] Ubuntu sets up the Samba service and ubuntutu16.04

Source: Internet
Author: User

[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

 

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.