Page 1 of 1

FTP file permission problem...

Posted: Sun 26 Dec 2010 9:14 pm
by kiwi_steve
Hi guys, its been a while since I was on here but I've just updated Cumulus to the latest build and everything broke... I lost all the web configuation of which files to upload to where so I've had to redo it all - no major problem... but...

It seems to be uploading all the files (I'm only uploading realtime.txt and two wind rose images) with '600' permissions (ie RW for the ftp user and nothing for anyone else) - which means my site (user:www-data - I'm using apache) can't extract the info from the realtime.txt file that it used to be able to. I don't remember this being a problem before - and I could possibly run a root cron job every couple of minutes to fix it... or there may be a simple fix I'm totally overlooking.

The site is www.nasebygold.co.nz/weather - its using PHP to explode the relatime.txt file and get the info it needs - or it was before this problem.

Any ideas? Am I doing something stupid that I just can't see because I've been staring at the problem too long? :lol: Most likely...

Cheers

Steve

Re: FTP file permission problem...

Posted: Sun 26 Dec 2010 11:33 pm
by beteljuice
AFAIK Cumulus does nothing to influence file permissions. This sounds more like a server problem.

Is it the file or directory permissions that changed, and if corrected do they 'stick' ?

Re: FTP file permission problem...

Posted: Mon 27 Dec 2010 6:04 am
by kiwi_steve
The directory that the files are uploaded to has 777 permissions, so the directory permissions have no effect.

And changing the file permissions of the uploaded files allows the site to work with those files, but 2 minutes later cumulus uploads new ones with the original 'don't-work-no-more' permissions over the top.

I'll do some reading on the FTP daemon and see if there is something I can do to influence the permissions - although I would expect the files to have the same permissions at both ends (although having said that, I'm not sure exactly how windows permissions map to a Linux server).

Thanks for the response tho... I'll keep digging

Steve

Re: FTP file permission problem...

Posted: Mon 27 Dec 2010 11:43 am
by steve
The files get their permissions from the default setting on the server, normally 644.

Re: FTP file permission problem...

Posted: Tue 28 Dec 2010 9:11 pm
by kiwi_steve
Thanks Steve - The problem was that I switched from ProFTPd to vsFTPd after recent exploits were uncovered in proFTP - and the defaults are quite different between the two. I've changed the defaults and its now all working again :)

Thanks for the help

Steve
nasebygold.co.nz/weather