[SAMBA] – Failed to modify password entry for user XXX

I found that the error "Failed to modify password entry for user"
occured when I didn't have a matching system user of that same name.

Fix: Create a system user with something like:

adduser myuser

See if this solves the issue for you.