title: mount unmount without sudo
body: <p>I am trying to write a script that would ssh into a host, perform mount operation there, run some other commands and exit.</p>
  
  <p>other commands (cd, cp) do not require sudo privelages but mount option requries sudo permission. I want to write a script that would do:</p>
  
  <pre><code>ssh user@server "mount -t nfs xx.xx.xx.xx:/ /nfs -o rsize=4096,wsize=4096 ; cp pqr rst ; umount /nfs ;" 
  </code></pre>
  
  <p>and some other non-sudo commands. How can I do this without a sudo option and without entering any passwords when the script is running.</p>