title: What is difference between os.getuid() and os.geteuid()?
body: <p>The documentation for <code>os.getuid()</code> says:</p>
  
  <blockquote>
    <p>Return the current process’s user id.</p>
  </blockquote>
  
  <p>And of <code>os.geteuid()</code> says:</p>
  
  <blockquote>
    <p>Return the current process’s effective user id.</p>
  </blockquote>
  
  <p>So what is the difference between <strong>user id</strong> and <strong>effective user id</strong>?</p>
  
  <p>For me both works same <em>(on both 2.x and 3.x)</em>. I am using it to check if script is being run as root.</p>