I have changed 777 to 775.
The reason I used it was because I didn't want any problems with no permissions either writing the file to my NAS box and viewing the file as a user
chown -R pi /mnt/CCTV returns this:
chown: changing ownership of '/mnt/CCTV/PiZero/dht.cpp': Operation not permitted chown: changing ownership of '/mnt/CCTV/PiZero/2018-06-14_10.12.34.h264': Operation not permitted chown: changing ownership of '/mnt/CCTV/PiZero/2018-050-23_17.m%.19.h264': Operation not permitted
I used sudo chmod without any errors.
Using this eample, does the group have to be named, as in g= name of group??
chmod -R +w,g=rw,o-rw, ~/group-project-files/
I'l have to buy a book on this subject before I can go any further with it. I did hope that google would give the answer, but yet.
Thanks