You can store a persistent password for each user on the SMB server that you use to access shares.
The password you store persists until the smbadm remove-key command is run for the user.
To store the persistent password for the SMB server, type the following command:
$ smbadm add-key [-u username]
You can specify the user name as a single name or use a format such as domain\username or username@domain.
The following command stores the persistent password for user1@solarsystem. Each time user1 performs a transaction with solarsystem, the persistent password is used to perform the authentication.
$ smbadm add-key -u user1@solarsystem Password for SOLARSYSTEM/user1: