I've not been using samba fro quite a while, but last time I did I needed to create samba users on the host machine in order to have actually working access control.
what makes thing confusing is that most often you map user names and passwords to be identical to the linux ones
anyway the command is:
$this->bbcode_second_pass_quote('', '
')smbpasswd