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
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
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
Moderator: mcrossley
-
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
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
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.
-
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
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
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
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 settingAt the start of each month a new monthly log file is created by CMX as root with permissions of 740
-
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
The umask command returns 0022 on my systems which I gather is the usual value.
Stuart
Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap