Support Topics: PERL: User's Guide: Setting File and Folder permissions
In the instructions included with the Perl
script you want to use there should be listed permissions for
the different files and folders the script uses. If your Perl
script does not include detailed instructions on how to configure
the script, or what permissions to set, then that script's author
did not care enough to let you use it. We can't help you figure
out what permissions to set as each Perl script is different,
so it would be best to find another script that does the same
function. The instructions are usually in a "Read Me"
or "Install" file included with the script. In those
instructions it is usually indicated what files need to be set
with what permissions by something like the following:
"Set 'yourcgi.pl' so that it is world executable"
or
chmod 777 yourscript.pl
This is referring to the UNIX "change mode" command
(chmod). The "chmod" command is used to set and alter
the file and folder permissions explained above. Since we do not
allow the type of access to issue commands like "chmod"
(called "telnet access" or "shell account")
you may be asking yourself "How do I set/change permissions
for files on my site?". The answer is: most FTP client applications
such as Fetch, Transmit and the page building software Adobe GoLive
have features that allow you to set those permissions (see "Using
FTP Client Applications to set permissions" below).
Here are the most common permission settings (chmod commands)
you may need:
chmod command |
Owner |
Group |
Everybody Else
(World) |
chmod 777 |
Read, Write, Execute |
Read, Write, Execute |
Read, Write, Execute |
chmod 755 |
Read, Write, Execute |
Read, Execute |
Read, Execute |
chmod 666 |
Read,
Write |
Read,
Write |
Read,
Write |
chmod 644 |
Read,
Write |
Read |
Read |
How to figure this out for yourself
If a permission setting you need to use for your script is not
listed above here's how to figure what that "chmod xxx"
command means: Each individual digit in the chmod command represents
one group of users. Since there are 3 different groups of users
(Owner, Group, and Everybody Else) there are three digits (example
chmod 777). The digits go from 0 (no permissions) to 7 (read,
write, execute) and are determined by simple addition:
"4" means readable
"2" means writeable
"1" means execute
"0" means no permission
So if you want a particular group to read the file the digit is
"4" (4 + 0 + 0), if you want them to read and write
the digit is "6" (4 + 2 + 0), and if you want them to
read, write & execute the digit would be "7" (4
+ 2 + 1). So if you had a file that needed to be "chmod 751"
that would mean:
Owner "7": (4 + 2 + 1) Read, Write and Execute
Group "5": (0 + 4 + 1) Read and Execute
Everybody Else "1": (0 + 0 + 1) Execute
|