Minimal SMB Server using node-smb-server module.
import smb from '@cloud-cli/smb';
const user = 'john';
const passwrd = 'test';
const share = 'smb-name';
const path = 'smb-folder';
smb.addUser({ name, password });
smb.addShare({ name, path });
smb.removeUser({ name });
smb.removeShare({ name });
smb.configure({ host: '', port: 8445 });
smb.stop();
smb.start();
smb.reload(); // same as stop + start
While adding an user, this error can happen: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
Other errors are likely caused by an incomplete SMB implementation provided by node-smb-server