| 4 | 1. Choose a folder in your computer where you will work. For example: |
| 5 | {{{ |
| 6 | mkdir /easy-samba |
| 7 | }}} |
| 8 | Now 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 | {{{ |
| 10 | mkdir /easy-samba/share |
| 11 | }}} |
| 12 | Let'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 | {{{ |
| 14 | mkdir /easy-samba/share/config |
| 15 | }}} |
| 16 | Let's create our configuration file: it must be named config.json and it must be in JSON format. Use your favorite text editor: |
| 17 | {{{ |
| 18 | nano /easy-samba/share/config/config.json |
| 19 | }}} |
| 20 | Put 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 | }}} |
| 32 | Then, test mount smb with client |