Automatic chmod

Richard Mahlerwein mahlerrd at yahoo.com
Fri Oct 9 15:19:02 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
>>
>>Hi;
>>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
>>TIA,
>>V
>
>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.

Sorry, missed the 'script that writes a script that won't run' piece.  First solution isn't likely to be the solution (though still could be), but I still suggest posting the code.

-Rich




      


More information about the freebsd-questions mailing list