Apologies for late reply, as I did not realise you had replied to me.
I had a problem with the piZero booting as it said the shell is locked, so I just re burned the stretch image on the sd card and starting over again.
As before I have managed to get this far:
I ran this: echo "test" > /mnt/CCTV/PiZero/test.txt and the file was created on my NAS box in the PiZero directory
sudo mount //192.168.0.22/CCTV/PiZero /mnt/CCTV/PiZero -o username=root,password=*******
python intruder.py Traceback (most recent call last): File "intruder.py", line 37, in shutil.copyfile(RAMname, NASname) File "/usr/lib/python2.7/shutil.py", line 83, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 2] No such file or directory: '//192.168.0.22/mnt/CCTV/PiZero/2018-06-04_15.09.19.h264'
On the PiZero I have: /mnt/CCTV/PiZero
When I run this: sudo mount -t cifs -o //192.168.0.22/mnt/CCTV/PiZero /mnt/CCTV/PiZero mount: can't find /mnt/CCTV/PiZero in /etc/fstab
Now as far as I am aware, there was nothing about fstab before, so do you think I should add the said line in /etc/fstab.
Thanks
Now no files of any size are created when I run the python script.