1) Create a text file for your credentials.
xed .smb-creds
2) Insert your credentials into this text file and save it with the first line is just the username, second line is just the workgroup, and the third line is just the password.
example:
username
workgroup
password
3) Using the “gio” command map to the network drive.
gio mount smb://server/share/ < ./.smb-creds
NOTE: //server/ can be name or IP address and the /share/ is the actual share name on that server.