We use cookies to try and give you a better experience in Freshdesk.
You can learn more about what kind of cookies we use, why, and how from our Privacy policy. If you hate cookies, or are just on a diet, you can disable them altogether too. Just note that the Freshdesk service is pretty big on some cookies (we love the choco-chip ones), and some portions of Freshdesk may not work properly if you disable cookies.
We’ll also assume you agree to the way we use cookies and are ok with it as described in our Privacy policy, unless you choose to disable them altogether through your browser.
I'm using a UR32-L04AU-P-W running firmware version 32.3.0.9. I’m trying to write a file to the SD card mounted at /mnt/mmcblk0p1, but my Python app gets a permission error: [Errno 13] Permission denied.
Is there a way to adjust the permissions or mount options to allow the app to write to the SD card?
Would appreciate any help. Thanks!
0 Votes
2 Comments
Ritu Hiremath posted about 1 year ago
Thanks so much for the quick reply! I’ve successfully gained write access to the SD card.
Hope you have a great day!
Cheers,
Ritu
0 Votes
Mandarin Li posted about 1 year ago Admin
Hi Ritu,
Thanks for contacting Milesight-IoT Support Team.
It looks like this is due to restricted permissions on the python app. Please refer to the following steps to try to elevate the permissions.
Steps:
1. Due to security policy restrictions, we are unable to provide a standard version of the root password. Therefore, we suggest you try to upgrade your router to the white package version, which has all the same features as the standard version with the root password: HelloMilesight!
Download link for the white packet version(based on firmware 32.3.0.9): https://resource.milesight-iot.com/Support/mandarin/32.3.10.9.bin
2.After upgrading to the white packet version, you need to reset it once for the new root password to take effect.
Note: As the device resets, all configurations will be restored to factory settings and you will need to reconfigure the router.
3.Enable SSH, so that you can access the router console.
Login router console with root/HelloMilesight!
4. Access path: /etc/supervisord.conf ,modify user to root , and save it.
5.After that , reboot the router or restart python app to check if it works.
Any problems ,feel free to let me know.
Have a great day.
Best Regards,
Mandarin Li
0 Votes
Login or Sign up to post a comment