36 users online (2 members and 34 guests)  

Thread: Perl CGI !


  Results 1 to 5 of 5

Related

  1. Need help with perl    Forum: CGI Perl Forum
    Replies: 1
  2. Replies: 1
  3. Replies: 1
  4. Replies: 0
  1. #1
    paul.lkw's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2005
    Posts
    4

    Question Perl CGI !

    Can perl cgi call system command that has root privilege, eg. quota 'some_user', via web page for display?

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Perl CGI !

    depends on how the server is setup... you can configure PERL to not allow it to do certain things, and have certain FTP&|accounts not allow to access other directories and system commands and stuff.

    try doing it using the "system" function

  3. #3
    paul.lkw's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2005
    Posts
    4

    Re: Perl CGI !

    I tried to use the "system" already but I get on the html page no output and get the error on the error log 'permission denied'!

  4. #4
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Perl CGI !

    let us see your code

  5. #5
    paul.lkw's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2005
    Posts
    4

    Red face Re: Perl CGI !

    The code is simply;

    #!/usr/bin/perl -w

    print "Content-type: text/html\n\n";

    system "quota lkw";



Tags for this Thread