I am trying to run a python script which uses a binary file (xFiles.bin.addr_patched) created by a postlinker. However, I am getting this error.
File \"abc.p
Python code to change the permission:
from getpwnam import pwd from getgrnam import grp import os uid = getpwnam("YOUR_USERNAME")[2] gid = grp.getgrnam("YOUR_GROUPNAME")[2] os.chown("myPath/xFiles.bin.addr_patched", uid, gid)
Run the script with sudo and you're done.
sudo