If you are going to put the password right in the script like that, you could just as well do this for the mount portion:
Code:
mount -t smbfs -o username='DOMAIN\username',password=password \
'\\server\directory' /mountpoint
This is pulled directly out of a script I have for mounting a samba directory, with the username and passwords substituted of course.
