title: Shell script to mount windows network location in linux machine
body: <p>I have two questions here. I am able to mount a windows network path in my Ubuntu machine by doing following:</p>
  
  <pre><code>sudo mount -t cifs -o username=user \\\\my_windows\\test /net/loc
  </code></pre>
  
  <p>All the files and folders present in Windows machine is now available in Ubuntu machine with path '/net/loc'. </p>
  
  <p>Here are my doubts:</p>
  
  <ol>
  <li><p>I can see all files of windows in linux path. Is it possible to create files/folders in Linux path(the mount path where windows path is mounted) and it will be reflected in Windows machine? I am not able to write in Linux machine where windows network location is mounted. It throws me error "Can't open file for writing".</p></li>
  <li><p>I am trying to write a shell script (a ksh file) which will mount the windows network path. I wrote the below mount command in my file but this command prompts for password. Is there any way, I can write the command in shell script that it will not ask me for password and I can pass it as either as a parameter or some other mechanism?</p>
  
  <p>mount -t cifs -o username=user \\my_windows\test /net/loc</p></li>
  </ol>
  
  <p>Thank you</p>