title: shell scripting that uses sudo su - team and perform rest command under this sudo access only
body: <pre><code>#!/bin/bash
  sudo su - team  //// this will change user to team
  &lt;somecommnand&gt;
  </code></pre>
  
  <p>here i have some command like sqlplus that run under this privilege only . </p>
  
  <p>but ,this script first asked for password then i give password but it not run rest of command like  .</p>
  
  <p>How to write script that use sudo su and run  all command in script below it.</p>