OSError: [Error 1] Operation not permitted

前端 未结 4 1209
旧时难觅i
旧时难觅i 2020-12-06 19:29

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         


        
4条回答
  •  鱼传尺愫
    2020-12-06 20:13

    You could try (from the command line, but I'm sure there's a syntax in python):

    sudo chown your_username:your_groupname filename
    

    Note: The group is usually just your username. I feel like there's something wrong with those permissions though. Read Write Execute for everyone seems to be off. How was this file created? How did it get to be created by the user nobody?

提交回复
热议问题