Submitting News doesn't post to the frontpage anymore

Is Coranto not working properly for you? Here's where to ask for support help; for best results, follow these steps:
  • - Check your core/addon documentation for possible solutions
  • - Search these forums for similar problems that have already been solved
  • - If you're still stumped, check out THIS TOPIC, and post your question in this forum!!

Moderators: Spunkmeyer, Dale Ray, SrNupsen, Bluetooth, Jackanape

Submitting News doesn't post to the frontpage anymore

Postby Spoff » Fri Apr 25, 2008 4:23 pm

I've been using Coranto for years now and for the first time I had an issue today. I do a standard post and submit it and it doesn't make it to my frontpage and I get the following error.

"Unable to open /usr/www/virtual/www.sitename.com/news/ndtmp1.txt. Permission denied at /www/virtual/www.sitename.com/cgi-bin/coranto/crcore.pl line 281"

When I check my news folder there isn't even a ndtmp1 text file?!?!

Any help would be great.

Thanks
Spoff
 
Posts: 6
Joined: Fri Apr 25, 2008 4:18 pm

Postby driv » Fri Apr 25, 2008 6:52 pm

This happened to me once when I double submitted news (or was that modified news?) Anyway it deleted my newsdat file and gave me the same error as you.

Restoring newsbak got things up and running again.

Alternatively...

This post suggests that the server may be low on space...
http://www.coranto.org/forum/viewtopic. ... ght=ndtmp1

Also this one...
http://www.coranto.org/forum/viewtopic. ... ght=ndtmp1
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Postby Spoff » Fri Apr 25, 2008 7:39 pm

Can I just rename the newsbak1.txt file to newsbak.txt?
Spoff
 
Posts: 6
Joined: Fri Apr 25, 2008 4:18 pm

Postby driv » Sat Apr 26, 2008 2:08 pm

Rename newsbak1.txt to newsdat.txt

There is also an older backup available called newsbak2.txt
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Postby Spoff » Sat Apr 26, 2008 3:25 pm

OK great I will do that now. Then a full rebuild I assume?
Spoff
 
Posts: 6
Joined: Fri Apr 25, 2008 4:18 pm

Postby driv » Sat Apr 26, 2008 6:26 pm

Yes and that will create the new backup files as well :)
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Postby Spoff » Sat Apr 26, 2008 6:48 pm

Well I did as you suggested and I am getting the exact same error still when I attempt to submit or modify any posts. Any other suggestions for me to try?
Spoff
 
Posts: 6
Joined: Fri Apr 25, 2008 4:18 pm

Postby driv » Sat Apr 26, 2008 10:01 pm

ok - did you check the permissions of the news directory?

Also, what about the permissions of the files inside?
I know that on some hosts I have been with, the permissions have changed 'mysteriously' even though the host denies it!

I should have suggested this first :roll:
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Postby Spoff » Sat Apr 26, 2008 10:48 pm

The news folder is 755 and the files inside appear to be 644.
Spoff
 
Posts: 6
Joined: Fri Apr 25, 2008 4:18 pm

Postby driv » Sun Apr 27, 2008 8:46 am

Just for the purposes of testing, can you make them both 777 - just temporarily.

If it still doesn't work, put them back as they were.
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Postby Spoff » Sun Apr 27, 2008 3:42 pm

Ok I changed the news folder to 777 and tested a posting and got an error for news.txt. I changed that file to 777 also and everything is working again. One last question I have is "Does this open me up to any security flaws or attacks?"

Thanks A TON by the way, great help!!!
Spoff
 
Posts: 6
Joined: Fri Apr 25, 2008 4:18 pm

Postby driv » Sun Apr 27, 2008 7:21 pm

It's best to make things as restrictive as possible.

If you can reset the folder to 755, then try 666 or whatever for the text file.

I can't see any way that newsdat.txt being open could compromise you (although I am happy to be corrected on this) - the only thing I can think of is that the file could (theoretically) be overwritten as it's wide open.

Usually this sort of attack only happens to file named index.* or config.* as the perpetrators are usually scriptkiddies.
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron