NewsPro FAQ

NewsPro FAQ > Errors & Problems >
When I try to edit files generated by NewsPro, my server won't let me. Why?

 

If you try and edit a file generated by NewsPro, such as one of the archive files, your FTP client may tell you that you're not authorized or that permission to access the file is denied. Here is an explanation, along with some solutions:

On UNIX, every file must be owned by a certain user. The CHMOD number then defines the permissions for the file. The first digit refers to the owner of the file, the second to the "group" (you can ignore this, irrelevant on most web servers), the third to everyone else. 4 means read only, 6 means read & write, 7 means read write & execute.

Anyway - the problem is that the web server, and therefore NewsPro, runs as user "nobody". By default, the files it creates are chmod 644 - in other words, it can read & write, all others (including you) can only read.

There are a couple of ways around this. Many servers will not let you modify the file, but WILL let you delete it. If your server allows this, you can download the file, delete it from the server, re-upload, and chmod it 666. If your server doesn't, then your best bet is to download a program like the CGI Commander from CGI City (http://www.icthus.net/CGI-City/). All this does is lets you execute simple UNIX commands as the web server (make sure you disable it when not using it, as there are simple UNIX commands to delete all your files!). Using this, type in

chmod 666 /path/to/file.txt

and the file is now chmod 666 and accessible to you.


 

Back to NewsPro FAQ