title: What's the equivalent of sudo in msys?
body: <p>I'm writing a cross-platform shell script that's supposed to work on Unix, Cygwin, and msys. In my shell script I need to perform actions with elevated privileges. On Unix you would do this via <code>sudo</code>, and on <a href="https://stackoverflow.com/questions/4090301/root-user-sudo-equivalent-in-cygwin">Cygwin</a> via something like <code>cygstart --action=runas</code>. What's the equivalent for msys?</p>
  
  <p>All my Googling so far has only turned up <a href="https://stackoverflow.com/questions/22767885/msysgit-sudo-like-command">this</a>, which isn't practical from a shell script since you have to interact with the GUI.</p>