I need to create a "real time" web page which reads data from a USB attached HDD at /media.pi/MyPassport/Axpert/solar.log.
I am getting a permissions error when I attempt reading that file via CGI/AJAX but when I run said program from command line it works perfectly.
pi@RPiDev:~ $ ls -al /media/pi/MyPassport/Axpert/solar.log
-rwxrwxrwx 1 pi pi 131 Aug 22 10:17 /media/pi/MyPassport/Axpert/solar.log
I have attempted altering the files permissions but this fails.
pi@RPiDev:~ $ sudo chown root:users /media/pi/MyPassport/Axpert/solar.log
chown: changing ownership of '/media/pi/MyPassport/Axpert/solar.log': Operation not permitted
Please tell me how to resolve this issue.
BTW I have posted here as permissions are set, in my opinion by raspbian, but if needs be this could be moved to a more appropriate forum.