Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

FTP file permission problem...

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
kiwi_steve
Posts: 10
Joined: Sun 27 Dec 2009 2:51 am
Weather Station: Chinese budget special USB thing
Operating System: Windows Vista SP1
Location: Christchurch, New Zealand

FTP file permission problem...

Post 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
--There are no personal problems that cannot be overcome with the liberal application of high explosive--
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: FTP file permission problem...

Post 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' ?
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
kiwi_steve
Posts: 10
Joined: Sun 27 Dec 2009 2:51 am
Weather Station: Chinese budget special USB thing
Operating System: Windows Vista SP1
Location: Christchurch, New Zealand

Re: FTP file permission problem...

Post 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
--There are no personal problems that cannot be overcome with the liberal application of high explosive--
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: FTP file permission problem...

Post by steve »

The files get their permissions from the default setting on the server, normally 644.
Steve
User avatar
kiwi_steve
Posts: 10
Joined: Sun 27 Dec 2009 2:51 am
Weather Station: Chinese budget special USB thing
Operating System: Windows Vista SP1
Location: Christchurch, New Zealand

Re: FTP file permission problem...

Post 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
--There are no personal problems that cannot be overcome with the liberal application of high explosive--
Post Reply