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
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.0 (build 4022) - 11 May 2024
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
Latest Cumulus MX V4 release 4.0.0 (build 4022) - 11 May 2024
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
FTP'd files have incorrect permissions
Moderator: mcrossley
-
- Posts: 11
- Joined: Fri 19 May 2017 7:04 pm
- Weather Station: Vantage Vue
- Operating System: Windows7 & Raspian
Re: FTP'd files have incorrect permissions
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
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
-
- Posts: 2491
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: FTP'd files have incorrect permissions
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.