Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:services:nas:ksmbd [2024/07/02 14:01] – [Example] streamline sample config and mention buffers palebloodskydocs:guide-user:services:nas:ksmbd [2024/12/11 13:48] – [Example] sppmaster
Line 23: Line 23:
 <code> <code>
 chown -R nobody:nogroup /mnt/sda1 chown -R nobody:nogroup /mnt/sda1
 +</code>
 +
 +To access a shared storage over the LAN using a **username** and **password** you have to use ''ksmbd.adduser'' from SSH. A ''/etc/ksmbd/ksmbdpwd.db'' file is created.
 +
 +<code>
 +root@OpenWrt:~# ksmbd.adduser --help
 +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          update USER in user database
 +  -d, --delete          delete USER from user database
 +  -p, --password=PWD    use PWD as user password instead of prompting;
 +                        PWD must be UTF-8 and [0, 129) bytes
 +  -P, --pwddb=PWDDB     use PWDDB as user database instead of
 +                        `/etc/ksmbd/ksmbdpwd.db'
 +  -C, --config=CONF     use CONF as configuration file instead of
 +                        `/etc/ksmbd/ksmbd.conf'
 +  -v, --verbose         be verbose
 +  -V, --version         output version information and exit
 +  -h, --help            display this help and exit
 +
 +See ksmbd.adduser(8) for more details.
 </code> </code>
  
Line 42: Line 68:
 </code> </code>
  
-On devices with sufficient RAM (typically >256MB) performance can be improved, increase or comment out the preset buffer limits in LuCI -> Services -> Network Shares -> Edit Template. Save and apply:+On devices with sufficient RAM (typically >256MB) performance can be improved, increase or comment out the preset buffer limits in LuCI -> Services -> Network Shares -> Edit Template. Save and apply: \\ 
 +As of this commit https://github.com/openwrt/packages/pull/25519 the below values are adjusted automatically (no need to change anything). This is valid for devices running OpenWrt main snapshot builds. \\ 
 +For versions below 24.10 you have to manually edit the template and adjust the values accordingly. 
 <code> <code>
  #smb2 max read = 512K  #smb2 max read = 512K
Line 48: Line 76:
  #smb2 max trans = 512K  #smb2 max trans = 512K
 </code> </code>
 +
 ===== Global section ===== ===== Global section =====
 The ''globals'' section contains share-independent options. The ''globals'' section contains share-independent options.
  • Last modified: 2024/12/11 13:53
  • by sppmaster