Script

Heiko Wundram heikowu at ceosg.de
Mon Aug 4 12:58:47 EDT 2003


On Mon, 2003-08-04 at 15:26, zze-Support activite PCL RAMSI A ext
DvSI/SIReS/LAN wrote:
> this script is created by the root, and have 4755 as chmod.

The 4 is +s (set UID), but this isn't allowed on scripts, because
there's some kind of race condition associated with having setuid
scripts on Unix. Don't remember what the problem was, but just look for
the term setuid script, and you'l soon find out.

Workaround: Write a compiled (a C program), which is setuid, and calls
ifconfig for you. This works, and this is what programs like mailman,
etc. do to get around this limitation of each and every Unix kernel.

HTH!

Heiko.






More information about the Python-list mailing list