From owner-freebsd-questions@FreeBSD.ORG Fri Oct 9 15:19:02 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C8621065676 for ; Fri, 9 Oct 2009 15:19:02 +0000 (UTC) (envelope-from mahlerrd@yahoo.com) Received: from web51007.mail.re2.yahoo.com (web51007.mail.re2.yahoo.com [206.190.38.138]) by mx1.freebsd.org (Postfix) with SMTP id 3FF098FC1D for ; Fri, 9 Oct 2009 15:19:01 +0000 (UTC) Received: (qmail 62120 invoked by uid 60001); 9 Oct 2009 15:19:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255101541; bh=/bTYYAhtoh6CMLm+B/aKqycP1n517/6v3/YIm9TLEE4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=vLl0XMuKUodLKjK6Xj/l3kkqQPHqf7vbOUduXyS9LJcpks0KaB4wFQGWSU7C4HnOGexhw1oQDoSu4RC1354UzbC6fWKV/8ucliH6PTNq32GoyFwfZPUuHFSdWzr0J5aHTnVzjzPHkuO2UHhyy1+fY4qVBrIJ3kL6I0tKnCAGiQE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=RRxQBMU1cHt3Ag3Pe+3ck1+vYKYnazFZxiq8iF1zHJKlsI+QXcHdEZgrqDHpkfCjdNewPndz6BqLXXfHYof0Fidf/uvsPsxfG7GvaimK7gF1wRMe6MjlLzgYwMdMwMRunQdtpTwTYrhUK1ZZZQxGhW62Sj0ctAFyhpoW8SeIX5w=; Message-ID: <307621.52461.qm@web51007.mail.re2.yahoo.com> X-YMail-OSG: mydS9MoVM1lp6fPzK7ZKxw8a_zx5SecJPCK5fUzekAiRf93Xj1tSs3YHSkMibIqzK0_BA3RWZLMof1STjRSDAFoKqnIc7gcDxrHOim3DK1yfa4.2HhU6T48qADre94Vf0cbCy286WKOpl0M56R2oLFOKEkXsgyYQMnU3eg8KjBmpRi_.QbCGgaXuzPYBvIvIUPlsHWliXIqTNChcN15U6Umb5bcItnYoQKZw9SzcGFK2EowqH8W7yLQK92VMfMXS55Uu1GuMr4v9YALddC2.dNqCk_Xcw_fTJPTnTtWiTY5uZpSzYVoURnnhvP.NAnU._dsv0T7S0TOj4.d85EWa7wS.dwUC.bx9Tg1RV34SHNWxd.JdzZdLi3hoGbz.3NgN2UXYoo_hQedRfg3HwdGBEeHLXIw- Received: from [74.40.57.42] by web51007.mail.re2.yahoo.com via HTTP; Fri, 09 Oct 2009 08:19:01 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Fri, 9 Oct 2009 08:19:01 -0700 (PDT) From: Richard Mahlerwein To: FreeBSD-Questions MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Automatic chmod X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mahlerrd@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2009 15:19:02 -0000 >>From: Victor Subervi >>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 t= o >>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?=A0 Without seeing code, my first gue= ss is that you are >trying to open a file you don't have permission to open= .=A0 The chmod you are doing only affects >the script's permissions, not th= e 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.=A0 Fi= rst solution isn't likely to be the solution (though still could be), but I= still suggest posting the code. -Rich =0A=0A=0A