I have a shell script that mounts several samba shares one after the other. I want my users to have to enter in their password only once. I can pass in a password using the following,
mount -v -t smbfs -o nodev,nosuid //$user:$firstname.lastname@example.org:/share /Volumes/share
This doesn't work when there are weird characters such as '^' or '.' in the password.