1 - How to map a share under linux command line.
I - Everything in Linux is all about the filesystem. So, first create a folder to wich later we will map the windows share:
cd /mnt
sudo mkdir myshare
Naming the folder you create on the linux machine with the windows share name is probably a good idea as one will be redirecting to the other.
II - here is the command to mount the share. Remember, if you want to be able to write, delete, modify files and folders in the windows machine the WINDOWSUSERNAME and WINDOWSPASSWORD you are supplying must have those permissions.
sudo mount -t cifs //IPOFTHEWINDOWSBOX/myshare /mnt/myshare -o username=WINDOWSUSERNAME,password=WINDOWSPASSWORD
III - Now problem is this mapping will be forgotten on next reboot. So how to make sure the mapping is performed upon poweron?
a) First create a hidden file (with a dot on the beginning) with the windows username and apssword:
If you don't write it down somewhere...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment