Get the App
SLTechnology News&Howtos  ›  Servers  › 

Set up samba sharing service

Shulou Source: shulou.com Published: 2022-06-03 09:11:37 12月06日 Update

Samba is one of the open source software projects that implements Microsoft's SMB/CIFS network protocol in Linux/UNIX operating systems, making it easier to share files across platforms.

1. Samba service program component

1) samba smbd service

Provide resource sharing services to users or hosts

smbd uses TCP protocol to communicate

SMB provides resource sharing services to Linux users using TCP/139 port

CISFS Universal Internet File System, Windows User Provides Resource Access Services Using TCP Port 445

2) samba nmbd service

Domain name resolution for users

The nmbd service uses UDP protocol using ports 137 and 138

3) samba master configuration file location

4) Samba master configuration file contains content

5) Meaning of configuration items in global configuration file

6) Shared Directory Settings Options

Install Samba

1. Filter samba related software

2. Configure yum installation

1) Configure local yum source

2) Mount the system disk to the/mnt directory

3) Install samba, install server and client

3. Create samba user database

1) Create a system account

2) View Samba accounts

3) Marry in a Samba account

4) Create a data-sharing root directory

4. Modify the smb.conf configuration file to set sharing

1) Modify samba master configuration file

2) Check whether the master configuration file is wrong

3) Start samba service setup service

4) Open a win7 virtual machine and set up network access on the same network segment.

5. Modify master profile settings to allow tom accounts to write data marry read shared data

1) Modify the master configuration file

If the client is unable to access, check whether the client firewall and selinux firewall are closed, and whether the permissions of the group are given to all permissions.

Tags: Configuration services files users data systems accounts customers clients ports resources permissions directories networks resource sharing software firewalls fire protection operating systems hosts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology Shulou Information Linux Huawei