From owner-freebsd-questions@FreeBSD.ORG Fri Oct 9 15:14:45 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 E02CA1065670 for ; Fri, 9 Oct 2009 15:14:44 +0000 (UTC) (envelope-from mahlerrd@yahoo.com) Received: from web51006.mail.re2.yahoo.com (web51006.mail.re2.yahoo.com [206.190.38.137]) by mx1.freebsd.org (Postfix) with SMTP id 951E98FC08 for ; Fri, 9 Oct 2009 15:14:44 +0000 (UTC) Received: (qmail 78310 invoked by uid 60001); 9 Oct 2009 15:14:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255101283; bh=5FlYgt2RiSubf3r2L2ix824MTclTMXE0OmmEYro1zLA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=38pfI85r4RCwVt+30nxNTeHjHaUDcSLbsWDAGKmYtv4JCxZBg/yHvvwnYYz+I0uekXRVdXj1VewvDXOqSGtUSr2LPncTSqmtKrU9Dcj8MvTy8uNlP9IhmecC6i3nkx2PHkObJT60zk2q2/eBAYcrEnq/G89b3LqNIqkOpVWShDI= 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:Cc:In-Reply-To:MIME-Version:Content-Type; b=Jpvsb4Ax2V6cluySoOHJldvswOzTGzgKPrHzgM3xQ76eDBc/xTLf36eCSrnzj0eA0e4hGvBYUxBRQl1fqT/dbucM26oo0gM0d5ck+0pmcHgh4rT3T3+AoopTvSXE9YEvZTrQ7LGfObAaCo1E6wFvXc+ofsQIoYWWWw8et+go+kU=; Message-ID: <868054.78039.qm@web51006.mail.re2.yahoo.com> X-YMail-OSG: aFm8DgcVM1kWVsgh.7pHL2C3Ox5tvs5103Nc6V89zRQY5VhgkUjTLZE2B5Zxps5ti_bbXUGghspP7TN0qn.08FKlDPNlHjIWaEcr.xyIYkdMUwhXgvdunPLqkwUYEFP.eHiNT.9PrsLULds2kR36vHA58.VoI4LgaYCt.ilhoLXEyP6zaw9oLw8E8lYmAZ4yXlPvJ4.6LaxR1Kwr3Y8.OurBi8p03wNR9O4YfK.8SapQMItq0GmMaY3nVCRJhtqTahTKHyKU2_rYlG2nYYRkSxr5VSQDc1xi6RZq8vL57nHPC8GN7rYpJava1EIKP70nehr5JYmo9Bg2kHdm7u3lqfkDzmaM33Ir3YcdOM_3eZQF5gbDScwknvlokhwAqZjzikUx7ThtW6oZzQsvBFQPRnGq_1yI7R0yE74W9LqQ0XeLmIQZIN59jPo- Received: from [74.40.57.42] by web51006.mail.re2.yahoo.com via HTTP; Fri, 09 Oct 2009 08:14:43 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Fri, 9 Oct 2009 08:14:43 -0700 (PDT) From: Richard Mahlerwein To: FreeBSD-Questions In-Reply-To: <4dc0cfea0910090719s36c43d89q124c3aa0923d629a@mail.gmail.com> 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 Cc: victorsubervi@gmail.com 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:14:45 -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 to >be able to automatically chmod the script so that it will execute. Also, i= t >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 gues= s 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 the = permissions of the files it may touch. For more, I suggest posting the code itself. -Rich =0A=0A=0A