mahlerrd at yahoo.com
Fri Oct 9 15:14:45 UTC 2009
>From: Victor Subervi <victorsubervi at gmail.com>
>Subject: Automatic chmod
>To: freebsd-questions at freebsd.org
>Date: Friday, October 9, 2009, 10:19 AM
>I have a python script that automatically writes another script. I need to
>be able to automatically chmod the script so that it will execute. Also, it
>appears that's not enough, because when I manually chmod the script (775),
>it throws this error:
>fopen: Permission denied
What user are you running this under? Without seeing code, my first guess is that you are trying to open a file you don't have permission to open. The chmod you are doing only affects the script's permissions, not the permissions of the files it may touch.
For more, I suggest posting the code itself.
More information about the freebsd-questions