title: Setuid bit on python script : Linux vs Solaris
body: <p>I am running this small python script on both linux and Solaris <strong>as a not privileged user</strong> :</p>
  
  <pre><code>#!/usr/bin/python
  import os
  print 'uid,euid =',os.getuid(),os.geteuid()
  </code></pre>
  
  <p>Before running, the setuid bit is set on the script (not on python interpreter) :</p>
  
  <pre><code>chown root:myusergrp getuid.py
  chmod 4750 getuid.py
  </code></pre>
  
  <p>On Solaris, the effective uid is set because of the setuid bit :</p>
  
  <pre><code>uid,euid = 10002 0
  </code></pre>
  
  <p>But not on Linux :</p>
  
  <pre><code>uid,euid = 10002 10002
  </code></pre>
  
  <p>Note the python version is 2.6 for both Solaris and Linux</p>
  
  <p>Is it possibe to have Python Linux working as Python Solaris ?</p>