Page 1 of 1
Local dashboard help - File ownership
Posted: Sun 30 Jan 2022 1:04 pm
by pgibbons256
Hello all, I hope I can explain this well enough to you. I recently moved my Cumulus MX to ran in docker in my Synology DS412Play by following the instructions on here by Galfert an its running fine, I've now upgraded to the latest "Cumulus MX 3.14.2 b3162" and decided to use brilliant dashboard by AndyK (
viewtopic.php?f=28&t=18557&start=45) but I'm running into a problem I'm using the "Copy to local folder" option in FTP settings to create to the files and using the "Extra Web Files" to copy the moon.png to the interface folder but when it does this the file is set to owner "root" which means I can't view the file on the dashboard or by browsing to the folder, how do I get this work correctly with correct ownership of the file.
The files created by the Copy to Local folder option have the ownership of admin when viewed on the Synology drives, but the file copied by the Extra Web files process sets it to root.
Sorry if this seems confusing but I've tried to explain it as best as I can.
Re: Local dashboard help - File ownership
Posted: Sun 30 Jan 2022 1:23 pm
by freddie
Are you running MX as the root user?
Re: Local dashboard help - File ownership
Posted: Sun 30 Jan 2022 1:27 pm
by pgibbons256
I don't know how to check that, I'm still getting my head around the whole docker thing. How would I check and change that?
Re: Local dashboard help - File ownership
Posted: Sun 30 Jan 2022 1:35 pm
by freddie
How are you starting MX? Is it from the command line, in a terminal window? Or do you have it set to start automatically, as a service?
Re: Local dashboard help - File ownership
Posted: Sun 30 Jan 2022 1:52 pm
by pgibbons256
Its running in docker on the Synology Disk station, so I'm not really sure how its starting. I'm still trying to get my head around that part. It starts automatically,mi followed the instructions on this post
viewtopic.php?f=40&t=18773&hilit=Synology
Re: Local dashboard help - File ownership
Posted: Sun 30 Jan 2022 2:12 pm
by freddie
Section 6 bullet point 4 suggests MX runs as root. This is why the files created by the local copy process are owned by root. I can't say why the other files are owned by another user, as I don't know the history of how MX was installed
One thing you could try is to change ownership of the copied file from root to another user. MX should then not change the ownership when it does its next copy. Give that a try. Warning - you will need to be doing this as the same user that owns the file - i.e. the root user.
Re: Local dashboard help - File ownership
Posted: Sun 30 Jan 2022 2:22 pm
by pgibbons256
I'm using the alternative version posted further down that post by galfert - How to run Cumulus MX on Synology NAS using Docker, this method only uses steps 2,3,4 & 5 from the original post so I never set the User. I tried to change the ownership of the file moon.png but when it next copies it it changes back to root. I might have to see if there is a way to set the user when creating the container.