[Tutor] os.setuid(euid) function

Kirk Bailey idiot1@netzero.net
Mon Dec 2 01:41:01 2002


Ok, in the os module, is the command 'seteuid(wuid)'. I tried this with 'root' 
and as 0 (zero) as the arguement provided, and both ways it barks.

Here is the error logged for each:
-----------------------------------------------------------------------------
Traceback (innermost last):
   File "/www/www.tinylist.org/cgi-bin/TLlistkill2.py", line 68, in ?
     os.seteuid('root')				# DIG, this is important. We are setting
AttributeError: seteuid
[Mon Dec  2 01:32:04 2002] [error] [client 65.59.82.123] Premature end of 
script headers: /www/www.tinylist.org/cgi-bin/TLlistkill2.py
Traceback (innermost last):
   File "/www/www.tinylist.org/cgi-bin/TLlistkill2.py", line 68, in ?
     os.seteuid(0)				# DIG, this is important. We are setting
AttributeError: seteuid
[Mon Dec  2 01:34:05 2002] [error] [client 65.59.82.123] Premature end of 
script headers: /www/www.tinylist.org/cgi-bin/TLlistkill2.py
-----------------------------------------------------------------------------

ok, what does it want me to provide as an attribute? For what it is worth, the 
ID function declares that when I am root, my uid is 0, and my gid is 0 (zero).
For example:
(beware wordwrap)
ns# id
uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty), 
5(operator), 20(staff), 31(guest), 100(webadmin)
ns#

Any suggestions?

-- 

end

Respectfully,
              Kirk D Bailey


+---------------------"Thou Art Free." -Eris-----------------------+
| http://www.howlermonkey.net  mailto:highprimate@howlermonkey.net |
| KILL spam dead!      http://www.scambusters.org/stopspam/#Pledge |
| http://www.tinylist.org  +--------+   mailto:grumpy@tinylist.org |
+------------------Thinking| NORMAL |Thinking----------------------+
                            +--------+


---------------------------------------------
Introducing NetZero Long Distance
1st month Free!
Sign up today at: www.netzerolongdistance.com