A maneira mais fácil de passar credenciais para smbclient em um script é provavelmente usar a opção -A :
-A|--authentication-file=filenameThis option allows you to specify a file from which to read the username and password used in the connection. The format of the file isusername = <value> password = <value> domain = <value>Make certain that the permissions on the file restrict access from unwanted users.
Portanto, crie um arquivo com suas credenciais:
credentials.txt
username=LR
password=HH9]<p#
E use isso em vez de inserir suas credenciais:
smbclient -A credentials.txt //10.123.42.144/Doc