I have a file a.txt
in Mac OS, which has write perms to everybody:
sh-3.2# ls -hal a.txt
-rw-rw-rw- 1 root wheel 0B Dec 8 11:34 a.txt
sh-3.2# pwd
/var/root
however in python it gives me an error:
>>> fob=open("/var/root/a.txt","w")
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
fob=open("/var/root/a.txt","w")
IOError: [Errno 13] Permission denied: '/var/root/a.txt'
question: why?