Changes between Version 1 and Version 2 of Samba


Ignore:
Timestamp:
09/26/24 23:15:42 (2 months ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Samba

    v1 v2  
    11= Samba
     2Ref [https://hub.docker.com/r/adevur/easy-samba ref] [[br]]
    23
     41. Choose a folder in your computer where you will work. For example:
     5{{{
     6mkdir /easy-samba
     7}}}
     8Now you must create a directory where all your shared folders will be located (this folder will be mounted as /share inside the container). For example:
     9{{{
     10mkdir /easy-samba/share
     11}}}
     12Let's create the directory where all your configuration files will be located (this folder must be named config and must be placed inside the directory that will be mounted as /share inside the container, that in our case is /easy-samba/share):
     13{{{
     14mkdir /easy-samba/share/config
     15}}}
     16Let's create our configuration file: it must be named config.json and it must be in JSON format. Use your favorite text editor:
     17{{{
     18nano /easy-samba/share/config/config.json
     19}}}
     20Put this sample configuration in the file:
     21{{{
     22{
     23    "domain": "WORKGROUP",
     24    "users": [
     25        { "name": "krit", "password": "123456789" }
     26    ],
     27    "shares": [
     28        { "name": "folder1", "path": "/share/folder1", "access": ["krit"] }
     29    ]
     30}
     31}}}
     32Then, test mount smb with client
    333{{{
    434#!sh