Re: Script

Discussion in 'Python' started by Heiko Wundram, Aug 4, 2003.

  1. 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.
    Heiko Wundram, Aug 4, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wet Basement
    Replies:
    1
    Views:
    2,501
    BobMonk
    Jul 15, 2003
  2. dpackwood
    Replies:
    3
    Views:
    1,765
  3. P McGinness
    Replies:
    0
    Views:
    284
    P McGinness
    Jan 14, 2004
  4. Rajat
    Replies:
    3
    Views:
    677
    Jorgen Grahn
    Jan 8, 2010
  5. VYAS ASHISH M-NTB837
    Replies:
    2
    Views:
    539
    Jan Kaliszewski
    Jan 7, 2010
Loading...

Share This Page