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

File permissions issue in Linux

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

File permissions issue in Linux

Post by broadstairs »

I am trying to run WXSim under Wine on Linux as well as CMX under Mono. At the start of each month a new monthly log file is created by CMX as root with permissions of 740 but when WXSim uses WXSimate to open and read the new monthly log file it fails and gets no local data. Now as far as I am aware WXSimate only asks for read access (remember this is running under Wine) however if I alter the permissions to 770 it works and can read the file. I suspect this is a problem with Wine however there is no Linux version of WXSim to run natively on Linux. I don't believe there a risk if CMX changes the file permissions to 770 on its log files? Can this be considered? It will be an issue for anyone wishing to run WXSim under Wine.

Please don't suggest I run under Windows - that is NOT an option.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: File permissions issue in Linux

Post by freddie »

Looks like Wxsim is asking to open the file as read/write rather than read only. You should be able to specify perms as 660 - unless Wine requires the execute bit be set for writing.
Freddie
Image
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: File permissions issue in Linux

Post by broadstairs »

Well I was running mono as root, I have no idea why but anyway I thought I'd try to run it as my normal user and yes it does run just fine. So that will sort my file permissions issue hopefully, I'll have to wait and see what happens when WXSim next runs its data collection!

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: File permissions issue in Linux

Post by freddie »

At the start of each month a new monthly log file is created by CMX as root with permissions of 740
This points to a mask problem in your Linux install. The OS will use the mask setting to set initial permissions on a file created by CMX. On my system the mask is 644, but it does vary between distros. However I've never encountered a distro that uses a 7 in its default mask setting
Freddie
Image
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: File permissions issue in Linux

Post by broadstairs »

The umask command returns 0022 on my systems which I gather is the usual value.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
Post Reply