setuid and current paths

Discussion in 'Python' started by Dave Harrison, Aug 1, 2003.

  1. hi again,

    Im clearly a moron, and have solved the problem myself, due to a wish
    to avoid dire embarrasment I shall not reveal the stupid mistake I made ;-)

    Apologies for the inconvenience
    Dave

    > hi all,
    >
    > Im using the setuid-prog.c script to setuid my cgi script.
    > The C script is chowned to "myuser" (not root, I dont need root access
    > just the access myuser has).
    >
    > However when I do this, the path it executes the script from is not
    > the same dir as the cgi itself.
    >
    > My CGI script uses a dir structure within its own dir, but when
    > I execute it from another dir (via the setuid script) Im not
    > in that dir natively.
    >
    > Ive tried chdir without success, and chroot runs me into a permissions
    > problem.
    >
    > Anyone want to tell me how I _should_ be doing this ?
     
    Dave Harrison, Aug 1, 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. Chris
    Replies:
    1
    Views:
    850
    Roy Johnson
    Oct 28, 2003
  2. Noah
    Replies:
    5
    Views:
    789
  3. Greg McIntyre
    Replies:
    0
    Views:
    434
    Greg McIntyre
    Sep 12, 2005
  4. Ohad Lutzky

    Paths, gentleman, paths

    Ohad Lutzky, Nov 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    200
    David Vallner
    Nov 7, 2006
  5. Intransition

    RubyGems current load paths

    Intransition, Nov 20, 2009, in forum: Ruby
    Replies:
    6
    Views:
    147
    Eric Hodel
    Nov 24, 2009
Loading...

Share This Page