I'm having a problem with file permissions...
Iv'e got a python program to automatically take pictures using fswebcam (by running a bash script using subprocess.call). however when i try to delete these files from my mac (SSH) (or even from the pi command line
rm -r without sudo) i dont have permission.
if i run the fswebcam command myself i can delete it.
when created with the script it is owned by root (in group pi) and owned by pi if i run it (and in group pi). Even when i chmod the file to 777 i cannot delete it.
EDIT: The permissions for the containing folder is
drwxr-sr-x. This folder is created using
os.mkdir("folder_name"), how do i stop this from creating the folder as both setuid bit and execute bit?