Date: Fri, 9 Oct 2009 08:19:01 -0700 (PDT) From: Richard Mahlerwein <mahlerrd@yahoo.com> To: FreeBSD-Questions <freebsd-questions@freebsd.org> Subject: Re: Automatic chmod Message-ID: <307621.52461.qm@web51007.mail.re2.yahoo.com>
next in thread | raw e-mail | index | archive | help
>>From: Victor Subervi <victorsubervi@gmail.com> >>Subject: Automatic chmod >>To: freebsd-questions@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?307621.52461.qm>
