Fix broken Samba user management functions in helper.sh

Description:
This corrects a typo in the helper script that prevented Samba user management from working.

Functions were originally defined as EditSmabaUserPassword and AddSmabaUser.

Because of the misspelling, they were never called, and Samba passwords were not being set.

Changes:

Renamed EditSmabaUserPassword → EditSambaUserPassword

Renamed AddSmabaUser → AddSambaUser

Impact:

Samba password changes and user additions will now function correctly.

No backward-compatibility issues, since nothing was successfully calling the typo’d functions before.

Notes:
This resolves a long-standing bug where Samba accounts were not being properly configured.

Signed-off-by: Kev <36553759+forkymcforkface@users.noreply.github.com>
This commit is contained in:
Kev 2025-09-23 10:11:17 -07:00 committed by GitHub
parent 0d3b2f444e
commit 0530f96648
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,11 +337,11 @@ RestartSMBD(){
}
# edit user password $1:username
EditSmabaUserPassword(){
EditSambaUserPassword(){
$sudo_cmd smbpasswd $1
}
AddSmabaUser(){
AddSambaUser(){
$sudo_cmd useradd $1
$sudo_cmd smbpasswd -a $1 <<EOF
$2
@ -356,4 +356,4 @@ MountCIFS(){
UDEVILUmount(){
$sudo_cmd udevil umount -f $1
}
}