SUID script??

Discussion in 'Perl Misc' started by richardrothwell@gmail.com, Nov 7, 2006.

  1. Guest

    I have a C program that runs as an SUID script. But I need to extend
    this script to query a database first and I've since found out that
    this cannot be done.

    So I was wondering if Perl can be used to create an SUID script or will
    Linux not run it??
     
    , Nov 7, 2006
    #1
    1. Advertising

  2. wrote:
    > I have a C program that runs as an SUID script. But I need to extend
    > this script to query a database first and I've since found out that
    > this cannot be done.
    >
    > So I was wondering if Perl can be used to create an SUID script or will
    > Linux not run it??


    You can do it by putting a C wrapper around your Perl script.

    http://perldoc.perl.org/perlsec.html#Security-Bugs

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl
     
    Gunnar Hjalmarsson, Nov 7, 2006
    #2
    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. Jeff Epler

    Re: suid Python script

    Jeff Epler, Aug 24, 2003, in forum: Python
    Replies:
    0
    Views:
    442
    Jeff Epler
    Aug 24, 2003
  2. rustom

    suid/sudo in python

    rustom, Mar 30, 2009, in forum: Python
    Replies:
    0
    Views:
    349
    rustom
    Mar 30, 2009
  3. Rustom Mody

    Re. suid/sudo in python

    Rustom Mody, Mar 30, 2009, in forum: Python
    Replies:
    3
    Views:
    1,725
    rustom
    Mar 31, 2009
  4. Replies:
    3
    Views:
    807
    Markus Wichmann
    Jan 15, 2012
  5. suid-perl deprecated... why?

    , Dec 1, 2004, in forum: Perl Misc
    Replies:
    4
    Views:
    456
Loading...

Share This Page