Is a linux standard sudo file -s /dev/sd* No, the images are saved to the HDD attached to BananaPi through the SATA interface. So I still need to fix this, the proper way This way it scans the folder, but unfortunately newly added files, are still not accessible, the main folder is accessible, PHP script is seeing all the files, even the new ones, but when I try to display them in a webpage, the images are not shown. Sudo chmod -R 777 /var/www/html/security_camera_storage Is this such a bad thing? even if this bananaPi is a local device, obody else has access to this pi, just me. Sudo chgrp -R securitycam /var/www/html/security_camera_storageĪfter seeing that PHP still can't access that folder, I changed the permissions of that folder to 777. I have added user admin to group secuirtycam, but still didn't help: The other files in html folder are owned by admin user.Īny advices on how to setup the ftp to save files that can be accessed by admin user, are welcome ![]() ![]() I want to setup some cronjobs to scan and delete old files (let's say, I will delete every image older than 3 days), I will also need to display the images in my dashboard, so I will definitely need to find a fix to this "issue" I tried to create a php script to scan the directory where images are saved but it seems it fails as the directory is owned by user securitycam, and php is running with a different user. The camera is saving new images each time there is motion, my only problem so far is how other users can access those images? Thanks for your advices, it was quite easy to setup the ftp using your instructions, I also created a new user and setup the user home directory inside /var/www/html/security_camera_storage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |