Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 2009 08:14:43 -0700 (PDT)
From:      Richard Mahlerwein <mahlerrd@yahoo.com>
To:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Cc:        victorsubervi@gmail.com
Subject:   Re: Automatic chmod
Message-ID:  <868054.78039.qm@web51006.mail.re2.yahoo.com>
In-Reply-To: <4dc0cfea0910090719s36c43d89q124c3aa0923d629a@mail.gmail.com>

next in thread | previous 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, 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      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868054.78039.qm>