Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'exception': 0.03; 'subject:skip:s 10': 0.05; 'arguments': 0.07; 'permission.': 0.07; 'errno': 0.09; 'url:localhost': 0.09; 'cc:addr:python-list': 0.10; 'apache': 0.13; 'sat,': 0.15; 'subject:Permission': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'email addr:gmail.com>': 0.20; 'permission': 0.20; 'object.': 0.22; 'cc:2**0': 0.23; 'statement': 0.23; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'used,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'run': 0.28; 'url:client': 0.29; 'url:mailman': 0.29; 'connection': 0.30; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'problem': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'open': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'client': 0.36; 'thank': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'page': 0.38; 'called': 0.39; 'url:mail': 0.40; 'think': 0.40; 'you.': 0.61; 'kind': 0.61; '26,': 0.65; 'regards.': 0.66; 'account': 0.67; '2013': 0.84; 'url:php': 0.86; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=HCwiLCbztV2QFSjv3L1P+o3ELmLIa9htq1T0b9oAfI4=; b=nzJ5aL6K2cZVPboHq12f9YUlnNYbXF/FpdMxDaBlly+rLRuer4NBQu62ar8tQ0bkB6 TjyxIq7CX/rS/KLzTtZ78nA7ivCH3hSU7yD5K1GuO7/GMP2ei+310dyyx1KBj9C+XGZM knhqdwgygOJfEXpMdcymIeMF4o7Pnu8CfBsm0PUc95IO0UC4tQhb6I0/eKqpI3TmPt8v CzTXSo0uhLTb0yl7ZgoAdMRwzf5qM+vTDzuMN4oA/+IVR4wvDJpYd+kg2RS8jqXtaPFF ReUkE7LgWTtF8Y5kXGSg2/JWS2oGhKo8fsBl2VIAICgaoHIXtaf2LByjt2T+BnjJrMQy oCQg== MIME-Version: 1.0 X-Received: by 10.52.76.7 with SMTP id g7mr8284833vdw.95.1359208040427; Sat, 26 Jan 2013 05:47:20 -0800 (PST) In-Reply-To: References: Date: Sat, 26 Jan 2013 08:47:20 -0500 Subject: Re: sockobj.connect Errno 13 Permission denied From: Joel Goldstick To: nobody Content-Type: multipart/alternative; boundary=bcaec50162416cef1b04d43148b4 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 87 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359208049 news.xs4all.nl 6925 [2001:888:2000:d::a6]:53600 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37721 --bcaec50162416cef1b04d43148b4 Content-Type: text/plain; charset=UTF-8 On Sat, Jan 26, 2013 at 6:19 AM, nobody wrote: > Hi, > > I have a client program Client.py which has a statement of > sockobj.connect(), the port number 60000 is used, so no problem from port > permission. > > I am puzzled because I can run Client.py from command line in my user > account or apache user account without any problems. > > But if I run it from a web page http://localhost/client.php, the > client.php called exec("Client.py"), Check the arguments to exec. I think it has to be an open file object. > then it got an exception of sockobj.connect Errno 13 Permission denied. > > Why it can run from command line, but cannot make connection from a web > file? Appreciate any tips and clues. > > Thank you. > > Kind regards. > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com --bcaec50162416cef1b04d43148b4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Sat, Jan 26, 2013 at 6:19 AM, nobody <jupiter.hce@gmail.com= > wrote:
Hi,

I have a client program Client.py which has a statement of sockobj.connect(= ), the port number 60000 is used, so no problem from port permission.

I am puzzled because I can run Client.py from command line in my user accou= nt or apache user account without any problems.

But if I run it from a web page http://localhost/client.php, the client.php called exec(= "Client.py"),


Check the argu= ments to exec.=C2=A0 I think it has to be an open file object.

=C2=A0
then it got an exception= of sockobj.connect Errno 13 Permission denied.

Why it can run from command line, but cannot make connection from a web fil= e? Appreciate any tips and clues.

Thank you.

Kind regards.



--
http://mail.python.org/mailman/listinfo/python-list



--
--bcaec50162416cef1b04d43148b4--