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
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
Ritu Hiremath
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!