So you want to access a Windows UNC share in Linux? No problem if you know the magic commands and have root access. This can be a great alternative to running cygwin if you are able to access a linux box (directly or via a virtual machine).
First, start by creating your mount point…
sudo mkdir /mnt/share1
Then, actually mount your UNC share to the mount point…
sudo mount -t cifs "//server/share1" /mnt/share -o username=my,password=secret
This would make \\server\share1 available to you on the Linux box as /mnt/share. Note the use of the options parameter (-o) to specify username and password.
Please remember to subscribe to the newsletter to stay up to date!You or someone you know looking to buy or sell?
Disclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...