Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53207

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <cameron@cskk.homeip.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'subject:: [': 0.04; 'that?': 0.05; 'subject:file': 0.07; 'permissions': 0.09; 'runs': 0.10; 'apache': 0.15; 'assumptions': 0.16; 'dark.': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'pathname': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'stuff.': 0.16; 'subject:] [': 0.16; 'writable': 0.16; 'www': 0.16; 'folder': 0.16; 'wrote:': 0.18; 'normally': 0.19; 'to:name :python-list@python.org': 0.22; 'header:User-Agent:1': 0.23; 'script.': 0.24; 'earlier': 0.24; 'cheers,': 0.24; 'script': 0.25; 'permission': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'generally': 0.29; 'relative': 0.30; 'cgi': 0.31; 'yes.': 0.31; 'file': 0.32; 'run': 0.32; 'says': 0.33; '(i.e.': 0.33; 'founded': 0.33; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'should': 0.36; 'so,': 0.37; 'turn': 0.37; 'being': 0.38; 'server': 0.38; 'configured': 0.38; 'received:211': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'ensure': 0.60; 'full': 0.61; 'content-disposition:inline': 0.62; 'yes': 0.68; 'nobody': 0.68; 'home': 0.69; 'gentleman': 0.84; 'lucas': 0.93
Date Thu, 29 Aug 2013 10:59:49 +1000
From Cameron Simpson <cs@zip.com.au>
To "python-list@python.org" <python-list@python.org>
Subject Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <5B80DD153D7D744689F57F4FB69AF47418695494@SCACMX008.exchad.jpmchase.net>
User-Agent Mutt/1.5.21 (2010-09-15)
References <5B80DD153D7D744689F57F4FB69AF47418695494@SCACMX008.exchad.jpmchase.net>
X-Optus-CM-Score 0
X-Optus-CM-Analysis v=2.1 cv=DstvpgP+ c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=eIhxMilvRf8A:10 a=TlYfcYuxsukA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=8AHkEIZyAAAA:8 a=70a3A420vf8A:10 a=5KNB24frAAAA:8 a=A91fLri2Bkucbmi1xPMA:9 a=CjuIK1q_8ugA:10
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.341.1377739410.19984.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377739410 news.xs4all.nl 15924 [2001:888:2000:d::a6]:50562
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53207

Show key headers only | View raw


On 28Aug2013 18:44, Prasad, Ramit <ramit.prasad@jpmorgan.com.dmarc.invalid> wrote:
| Ferrous Cranus wrote:
| > Yes Uli, the script metrits.py is being invoked by Apache Web Server which in turn runs under user
| > Nobody.
| > So, that mean that? user 'nobody' has no write permission to /home/nikos folder?

As Ramit says, yes. Your own directory listing earlier showed "r-x" for the
group "nobody"; that says "no write". The file was the same: "r--".

| Yes. You should make it group writable with "nobody" as the group. Use chmod and chown
| to change permissions and owners (i.e. groups).

To be explicit:

  chgrp nobody the-file
  chmod g+w the-file

| Normally I would have thought you would have a public_html or www directory in your
| home folder that would be readable/writable to the web server (and where you should 
| write).

Readable, yes. Writable? Generally mad. Apaches are often configured
to run as "nobody" or "nofiles" specificly to ensure that it cannot
write to stuff. The last thing you want is to have the website's
files writable by the apache; it is asking for defacements and other
hacks.

Nikos should make a specific directory for these files and give
ONLY THAT write permission for "nobody". And then use a full pathname
to the directory in his CGI script - a relative path makes ill
founded assumptions about the current working directory of the
script.

Cheers,
-- 
Cameron Simpson <cs@zip.com.au>

A gentleman does not go motoring about after dark.      - J. Lucas

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of Cameron Simpson <cs@zip.com.au> - 2013-08-29 10:59 +1000
  Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-08-28 21:29 -0700
    Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of Nick the Gr33k <nikos@superhost.gr> - 2013-08-29 07:49 +0300

csiph-web