[Tutor] os.setuid(euid) function
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Mon Dec 2 02:08:01 2002
On Mon, 2 Dec 2002, Kirk Bailey wrote:
> 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
^^^^^^^
Hi Kirk,
Check your spelling. The code says "seteuid", but you meant to write
'setuid'.
> AttributeError: seteuid
By "AttributeError", Python is complaining that it can't find the an
"attribute", that it can't find a value that's named 'seteuid' within the
'os' module.
Good luck!