Koozali.org: home of the SME Server

chmod

gage

chmod
« on: March 21, 2002, 04:43:23 AM »
how do I chmod my cgi-bin scripts. I usually do it with ws-ftp but it won't work?

Nuno

Re: chmod
« Reply #1 on: March 21, 2002, 03:21:38 PM »
Chmod over ftp is disabled with e-smith, however you can do it via the command line like

chmod 664 filename

TheNewGuy

Re: chmod
« Reply #2 on: March 23, 2002, 09:05:11 AM »
I was wondering the about the same thing, except i was wondering how to enable chmoding through an FTP client.

Ron Harris

Re: chmod
« Reply #3 on: March 29, 2002, 11:44:00 PM »
You must log into your server as 'Root' from the server console (Cannot use WS-FTP or any other FTP client with SME Server). If the command line window is not showing, hit the ALT-F2 key.

Place your cgi script in your cgi-bin directory and enter the following command:

chmod a+x /home/e-smith/files/primary/cgi-bin/your_script_name_here

Logout of the server and gateway (if installed) and this will make your script executable.

Added Note: The root directory of your server is /home/e-smith/files/primary.

In order to use the script you must reference it as follows:

FORM METHOD="POST" ACTION="/cgi-bin/your_script_name_here"