Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post 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.
gw4bvy
Posts: 4
Joined: Fri May 19, 2017 7:04 pm
Weather Station: Vantage Vue
Operating System: Windows7 & Raspian

FTP'd files have incorrect permissions

Postby gw4bvy » Fri May 11, 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 May 19, 2017 7:04 pm
Weather Station: Vantage Vue
Operating System: Windows7 & Raspian

Re: FTP'd files have incorrect permissions

Postby gw4bvy » Sat May 12, 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: 270
Joined: Wed Jun 08, 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

Postby freddie » Mon May 14, 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


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 5 guests