help with chmoding .pl

daggius

New Member
Messages
41
Reaction score
0
Points
0
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
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
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:
Top