Form Processor with no SPAM from robots.
Anti-spam, anti-robot, anti-flame, Guestbook for your website.
Manage Remote websites from your website. Allow clients to update sections of their own web pages.
|
QuickCHMOD Perl CHMODing Script for Unix/Linux/Mac Servers
Windows servers do not recognize the CHMOD command.
Step 1 - Configure
- If you do not have access to a Plain Text File editor such as NotePad for Windows, you can skip Step 1. If you have a plain text file editor, (Mac TextEdit must be configured to treat text files as plain text) open qc.cgi and scroll down to line 25 where you will see the following three configuration variables.
- Make sure the path to Perl is correct at the top of your script.
- $DocRoot = $ENV{DOCUMENT_ROOT};
Leave above variable as is, or if you find your Directories are not being listed, enter the absolute path to your FTP web space between quotes. You can even start reading from above your web space if permission allows. E.g. $DocRoot = "/home/username";
- $PrintTree = 1;
- Leave as is if you have less than a few hundred Directories/Sub-Directories within your $DocRoot setting. If however you have too many Directories to fetch and print each time you load qc.cgi you can set this variable to 0 (zero) to speed up page loads. You will still be able to traverse Directories one level at a time. E.g. $PrintTree = 0;
- $AllowDangerous = 0;
Leave as is unless you know you need to apply permissions which are very uncommon and very dangerous. Leaving this variable at 0 (zero) will ensure QuickCHMOD prevents several file and folder modes and permissions from taking place. We all make tipos. See what I mean?
Step 2 - Install
- Upload the qc.cgi script in ASCII mode to any executable folder on your server. If the script is not uploaded in ASCII mode, you will receive a server 500 error. Take that to the bank.
- CHMOD the qc.cgi script to 755. Yes, before you can use it, you must CHMOD it.
Step 3 - Play
- Load the qc.cgi script in your favorite Web Browser. The Web Address you load in your Web Browser, should point to the location of the qc.cgi file you uploaded. E.g. http://www.yourdomain.com/cgi-bin/qc.cgi
- Remember, there is no protection in this free script, so we suggest you either
a) CHMOD it useless when you've finished working with it. E.g. 644
b) Delete it from your server when you've finished using it, or
c) Upload and utilise it only from a Password Protected Directory.
If you have configured QuickCHMOD to print your Webserver's Directory Tree, select the Directory you'd like to change to. Directories are printed in alphabetical Order. Otherwise, work your way up to the desired Directory by clicking on the Sub-Directory links listed on the left side of the page, also alphabetically sorted.
- CHMODing files or folders can be achieved via three separate methods. In all three cases, QuickCHMOD will return an alphabetically sorted list of files and folders that had their properties successfully updated and an update Directory and Permission Listing.
1). Recursive Permission Update.
To recursively change permissions for all files and all folders in the Current Directory (the Directory list you see), including all files and Directories existing within the Sub-Directories, you can apply a Recursive Permission Change. This is achieved by entering the Numeric Value near the top of the page then pressing the button labelled "Apply Recursive".
2). Selective Permission Update (Common Attributes).
To apply the same Numeric Value to several files and/or folders within the Current Directory (but not in the hidden Sub-Directories), follow these steps:
- Place a Tick in the Checkbox field on the right of the file(s) or folder(s) you'd like to change permissions for.
- Leave the Distinct Permissions listed to the left of the file(s) or folder(s) blank. If you select any Distinct Permssions, they will override the Common Numeric Value
- Enter the Common Numeric Value to be applied to all selected file(s) or folder(s) near the bottom of the page and press the button labelled "Apply Selective".
3). Selective Permission Update (Distinct Attributes).
To apply Distinct Numeric Value to several files and/or folders within the Current Directory (but not in the hidden Sub-Directories), follow these steps:
- Place a Tick in the Checkbox field on the right of the file(s) or folder(s) you'd like to change permissions for.
- Select the new file or folder properties for each of your selections by clicking on one of the Distinct Permissions listed to the left of the file or folder names.
- Leave the Common Numeric Value near the bottom of the page blank and press the button labelled "Apply Selective"
|
|