Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:nas:ksmbd [2024/07/01 22:59] – [Installation] clarifiation palebloodsky | docs:guide-user:services:nas:ksmbd [2024/12/11 13:48] – [Example] sppmaster | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| ==== Example ==== | ==== Example ==== | ||
| - | This example assumes you have [[docs: | + | This example assumes you have a [[docs: |
| + | Multiple devices | ||
| - | We will access | + | To access storage anonymously over the LAN using the '' |
| < | < | ||
| - | chown -R nobody: | + | chown -R nobody: |
| </ | </ | ||
| - | Then we can configure our shares in ''/ | + | To access a shared storage over the LAN using a **username** and **password** you have to use '' |
| + | |||
| + | < | ||
| + | root@OpenWrt: | ||
| + | Usage: ksmbd.adduser [-v] [-P PWDDB] [-c CONF] [-a | -u | -d] [-p PWD] USER | ||
| + | |||
| + | If neither `-a', `-u', nor `-d' is given, either add or update USER. | ||
| + | USER must be UTF-8 and [1, 48) bytes. | ||
| + | USER cannot contain colon (`:' | ||
| + | |||
| + | -a, --add add USER to user database | ||
| + | -u, --update | ||
| + | -d, --delete | ||
| + | -p, --password=PWD | ||
| + | PWD must be UTF-8 and [0, 129) bytes | ||
| + | -P, --pwddb=PWDDB | ||
| + | `/ | ||
| + | -C, --config=CONF | ||
| + | `/ | ||
| + | -v, --verbose | ||
| + | -V, --version | ||
| + | -h, --help | ||
| + | |||
| + | See ksmbd.adduser(8) for more details. | ||
| + | </ | ||
| + | |||
| + | Configure | ||
| < | < | ||
| config globals | config globals | ||
| option workgroup ' | option workgroup ' | ||
| - | option description 'Ksmbd on My-Device' | + | option description 'Ksmbd on OpenWrt' |
| option interface ' | option interface ' | ||
| Line 35: | Line 62: | ||
| option name ' | option name ' | ||
| option path '/ | option path '/ | ||
| - | option read_only ' | ||
| - | option guest_ok ' | ||
| - | option create_mask ' | ||
| - | option dir_mask ' | ||
| - | |||
| - | config share | ||
| - | option name ' | ||
| - | option path '/ | ||
| option read_only ' | option read_only ' | ||
| option guest_ok ' | option guest_ok ' | ||
| Line 49: | Line 68: | ||
| </ | </ | ||
| - | For better performance on devices with enough | + | On devices with sufficient |
| + | As of this commit https:// | ||
| + | For versions below 24.10 you have to manually edit the template and adjust the values accordingly. | ||
| < | < | ||
| #smb2 max read = 512K | #smb2 max read = 512K | ||
| Line 55: | Line 76: | ||
| #smb2 max trans = 512K | #smb2 max trans = 512K | ||
| </ | </ | ||
| + | |||
| ===== Global section ===== | ===== Global section ===== | ||
| The '' | The '' | ||