Koozali.org: home of the SME Server

CHMOD

Sjoerd

CHMOD
« on: January 12, 2003, 07:16:58 PM »
I can't do a CHMOD on my SMEserver.
I want to instal a forum (Invisionboard) and get this error:
-----------------------------------------------------------------------------------------------------------------
The following errors must be rectified before continuing!

Cannot write to 'conf_global.php'. Please adjust the permissions to allow this script to write to the file. if in doubt, CHMOD via FTP to 0777
-----------------------------------------------------------------------------------------------------------------

My ftpprogram: (WS_FTPpro):
-----------------------------------------------------------------------------------------------------------------
50 CWD command successful.
/primary/html  loaded from [Directory Listing Cache]DIR177.tmp
site chmod 777 /primary/html/Invisionboard
550 CHMOD not allowed on /primary/html/Invisionboard
-----------------------------------------------------------------------------------------------------------------

How can I fix this?

Dan Brown

Re: CHMOD
« Reply #1 on: January 12, 2003, 07:30:07 PM »
You can log on to the server, either locally or via ssh, and run the chmod command.

Sjoerd

Re: CHMOD
« Reply #2 on: January 12, 2003, 07:39:18 PM »
I'm a Linuxnewbie. What is the command to do that?
I would like to do it with my FTPprogram.

Dan Brown

Re: CHMOD
« Reply #3 on: January 12, 2003, 10:04:26 PM »
You can't do it with your FTP program; you have to do it at the shell.  The command is chmod 777 .

Charlie Brady

Re: CHMOD
« Reply #4 on: January 12, 2003, 11:29:29 PM »
Dan Brown wrote:

> You can't do it with your FTP program; you have to do it at
> the shell.  The command is chmod 777 .

Mode 777 should almost never be used. I believe you when you say it is what the documentation suggestions, but that will almost certainly leave your site less secure than it might be.

Charlie

Sjoerd

Re: CHMOD
« Reply #5 on: January 13, 2003, 12:20:25 PM »
Author: Dan Brown (dan_AT_familybrown.org)
Date:   01-12-03 14:04

You can't do it with your FTP program; you have to do it at the shell. The command is chmod 777 .
---------------------------------------------------------------------------

This is for just one file.
I have to set a whole directory at chmod 777.

Robert

Re: CHMOD
« Reply #6 on: January 13, 2003, 02:26:32 PM »
Read the manual page for chmod. You can display the manual by typing 'man chmod' at the command prompt. When you're done reading, type 'q'. But be careful: chmod 777 gives write and execute permissions to everyone. I would first try if setting write permission for the file you couldn't write to solves the problem.