Linux system file sharing samba configuration tutorial

Linux system file sharing samba configuration tutorial

Uninstall and install samba

sudo apt-get purge samba samba-* 
sudo apt-get update  
sudo apt-get install samba samba-common

Create a new shared path and set permissions

sudo mkdir /samba-share-path
sudo chmod 777 -R /samba-share-path/

Edit the samba configuration file

sudo vi /etc/samba/smb.conf

Add to the end of the file:

[samba-share-path]
   comment = samba-share-path
   path = /samba-share-path
   browseable = yes
   writeable = yes
   available = yes
   public = yes

Restart samba service

sudo service smbd restart

Open the shared folder in windows

WIN+R Enter or directly enter double backslash + IP address in the folder path box

\\192.168.255.129 #your own Linux IP address 

insert image description here

The shared folder is successfully connected.

To facilitate opening this shared path like opening the D drive in the future, map it to a network drive

insert image description here

Complete the Linux samba server configuration and Windows client connection:

insert image description here

Note: Newly added subfolders and files on the Linux side need to have their permissions re-set before they can be shared and written to with high permissions

insert image description here

This is the end of this article about the Linux system file sharing Samba configuration tutorial. For more relevant Linux file sharing Samba configuration content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Linux Samba server super detailed installation and configuration (with problem solving)
  • How to use Samba to build a shared file service on a Linux server
  • How to install and configure samba server under Linux

<<:  How to implement the @person function through Vue

>>:  List of commonly used escape codes for HTML greater than, less than, spaces, quotation marks, etc.

Recommend

How to use vuex in Vue project

Table of contents What is Vuex? Vuex usage cycle ...

Three networking methods and principles of VMware virtual machines (summary)

1. Brigde——Bridge: VMnet0 is used by default 1. P...

Command to view binlog file creation time in Linux

Table of contents background analyze method backg...

Looping methods and various traversal methods in js

Table of contents for loop While Loop do-while lo...

The most commonly used HTML escape sequence

In HTML, <, >, &, etc. have special mean...

Problems encountered when updating the auto-increment primary key id in Mysql

Table of contents Why update the auto-increment i...

JS realizes special effects of web page navigation bar

This article shares with you a practical web navi...

Detailed explanation of non-parent-child component communication in Vue3

Table of contents First method App.vue Home.vue H...

How to unify the character set on an existing mysql database

Preface In the database, some data tables and dat...

Optimize the storage efficiency of BLOB and TEXT columns in InnoDB tables

First, let's introduce a few key points about...

Some small methods commonly used in html pages

Add in the <Head> tag <meta http-equiv=&q...