Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See the Wiki for download

FTP'd files have incorrect permissions

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
Post Reply
gw4bvy
Posts: 4
Joined: Fri 19 May 2017 7:04 pm
Weather Station: Vantage Vue
Operating System: Windows7 & Raspian

FTP'd files have incorrect permissions

Post by gw4bvy » Fri 11 May 2018 12:21 pm

I've completed my migration of my Vantage Vue weather station, eventually, using CumulusMX from a PC to a Raspberry Pi.

There is one remaining issue. All of the files FTP'd within the Raspberry Pi from CumulusMX to /var/www/html/ have permission -rw------- (600) and therefore get a 403 Forbidden when I try to access them from a Browser. (Looking at the old files on my previous NAS server they had permission -rwxrwxrwx (777) ) .

Help !!
Thanks in Advance,
Roger

gw4bvy
Posts: 4
Joined: Fri 19 May 2017 7:04 pm
Weather Station: Vantage Vue
Operating System: Windows7 & Raspian

Re: FTP'd files have incorrect permissions

Post by gw4bvy » Sat 12 May 2018 10:17 am

Solving my own problem - but may be of interest to others.
The problem was the setting in vsftpd. By default this is set to 600. As a minimum it is necessary in vsftpd.conf to set local_umask and anon_umask to 022.
But it still doesn't work. As the FTP is overwritting files that already exist - it DOES NOT change the permissions!!!! You need to delete the files already FTP'd, and then the permissions will be correct on the next upload.
Roger

freddie
Posts: 320
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux (Ubuntu 18.04)
Location: Ystrad, Rhondda, Wales
Contact:

Re: FTP'd files have incorrect permissions

Post by freddie » Mon 14 May 2018 6:41 pm

You don't need your permissions to be as lax as 777. You won't need the execute bit set firstly, as they aren't files that get executed. The only user that needs write permission is the user that FTPs the files - which is also the owner of the files. Therefore you should really tighten up the permissions to 644 (read/write owner, read group and global). It probably doesn't matter, but should your Pi be compromised then the files are wide open to unauthorised editing.
Freddie
Image

Post Reply