+ Reply to Thread
Results 1 to 2 of 2

Thread: help with chmoding .pl

  1. #1
    daggius is offline x10Hosting Member daggius is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    41

    help with chmoding .pl

    Hi, I downloaded a script to make a tournament bracket which involved me putting an install.pl file in cgi-bin then going to that url which makes it install a bunch more .pl files.

    The .pl files need to be chmoded to 755 to work, but when the install.pl creates them, for some reason they are chmoded to 363 and my ftp client won't let me chmod them to 755

    It says
    Could not change perms: Permission denied.

    Even tho I am logged in as the admin account on my x10hosting account so it seems like I should be able to chmod anything?

    Please help!

    Thanks

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: help with chmoding .pl

    You can try to change the permissions through the File Manager.

    If that doesn't work, try putting this script in cgi-bin and run it from the web. Check the ownership of the files you are having problems with.

    Code:
    #! /usr/bin/perl
    
    use CGI::Carp qw(fatalsToBrowser);
    
    my $dir = `ls -l` ;
    
    
    print "Content-type: text/html\n\n";
    print "<html>\n";
    print "<head><title>Contents of...</title></head>\n";
    print "<body>\n";
    print "<h2>Contents of ...</h2> <br /> \n";
    
    print "<br /> ... <pre> " ;
    print  $dir ;
    
    print "</pre><br /> ... " ;
    print "</body></html>" ;
    Last edited by descalzo; 12-15-2009 at 02:30 PM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers