Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    Adelaide, Australia
    Posts
    472
    Thanks
    3
    Thanked 0 Times in 0 Posts

    cgi-bin not promptly

    Hi there,
    I made some cgi scripts, then I put them into a cgi-bin.
    the scripts (.cgi) are permissions 755. i have two, one that gets info from a .txt and one that sends info from a form into that .txt.
    now they both have the same permissiones (755) but only the one that gets from the .txt works? the one that gets from the form doesnt? whats gonna on 'ere?!

    thanksy

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    hey!
    have you set the permissions on the txt file too?
    you need to do that to 777 if your writing to it
    if you have then chuck us more info on the error
    ta
    P

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    Adelaide, Australia
    Posts
    472
    Thanks
    3
    Thanked 0 Times in 0 Posts

    lol

    hehe, after 3 seconds from when i posted the thread i worked out i didnt set it to 777 i only did 775 woops!

    thanks anyhow

  • #4
    New Coder
    Join Date
    Sep 2002
    Location
    Up North (UK)
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sir pannels,

    FYI:

    If you are reading and writing to a text file you only need read and write permissions on the file (666). Sticking the execute flag onto the file is actually quite bad! Subverting PERL can be quite easy unless special measures are taken to prevent it and having an execute bit set on the txt file open another door.

  • #5
    Regular Coder
    Join Date
    Sep 2002
    Location
    Adelaide, Australia
    Posts
    472
    Thanks
    3
    Thanked 0 Times in 0 Posts
    yeha i guess i could do that.. thanks
    Originally posted by fivesidecube
    sir pannels,
    what does that mean? (the above)

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    hey!,
    yeh im aware of that.. but depending on your server permission settings you may have problems... unless your going for some kinda really important online system you dont need surcurity that much and if you where you`d have security anyhow..
    tho just thought it would make life easier
    but thanks for the input anyway man usefull info to those that dont know ...

    oh sir pannels is a name.. my name

    P


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •