Just a FYI... if you've got a reasonably modern kernel (with CIFS support), you should be able to mount the remote file system via your fstab instead, providing the password via a credentials file that is only accessible by root. I don't know exactly what you're trying to do, but in general that's a better all-around way of accessing the server, since it looks just like any other mounted filesystem.
The years just pass like trains. I wave, but they don't slow down.
-- Steven Wilson