Mount network share and ask for username and password
I'm running Linux Mint 11 and I'm trying to write a script that will mount a network drive and also ask for my username and password. I'm very new to Linux and I've gotten it to the point where it will mount if I provide it my username and then it will prompt my for my password. My problem is, many different people will be using this script and I need it to also prompt for username.
Here's what I have so far:
sudo mount -t cifs //myshare.share.com/share /home/user/Desktop/backup -o username=myusername
I originally thought that if I just left out the username= that it would then prompt me but it just gives me an access denied error.
Thanks for any help and/or advice you can provide.