Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'skip:[ 20': 0.04; 'root': 0.05; 'assign': 0.07; 'init': 0.07; 'subject:script': 0.09; 'python': 0.11; 'apache': 0.15; 'grep': 0.16; 'nobody?': 0.16; 'received:65.55.116.7': 0.16; 'subject:Apache': 0.16; 'subject:issue': 0.16; 'subject:run': 0.16; 'two)': 0.16; 'subject:python': 0.16; 'shell': 0.22; 'to:name:python-list@python.org': 0.22; 'case.': 0.24; 'received:65.55.116': 0.24; 'settings.': 0.24; 'script': 0.25; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'rest': 0.29; "doesn't": 0.30; 'subject:that': 0.31; 'file': 0.32; 'there.': 0.32; 'run': 0.32; 'date:': 0.34; 'email addr:python.org': 0.37; 'to:addr:python-list': 0.38; 'issue': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'first': 0.61; 'email addr:gmail.com': 0.63; 're:': 0.63; 'email name:python- list': 0.65; 'nobody': 0.68; 'skip:/ 30': 0.84; 'carlos': 0.91; 'subject:let': 0.93; '2013': 0.98 X-TMN: [QAjN2aom4kA1zFFBOUN5LFa/jTWDyB/5] X-Originating-Email: [carlosnepomuceno@outlook.com] Content-Type: multipart/alternative; boundary="_990eaae8-6984-49b0-b8c2-93999cfe444e_" From: Carlos Nepomuceno To: "python-list@python.org" Subject: RE: Apache and suexec issue that wont let me run my python script Date: Tue, 4 Jun 2013 14:58:28 +0300 Importance: Normal In-Reply-To: <2e1dbdc2-6bca-4c4e-93b0-4c0cddb72bc1@googlegroups.com> References: <20a49aac-3867-481f-96d4-c95a050781ed@googlegroups.com>, >,>,, ,,> , >,<, <51AD2564.6080707@gmail.com>, ,,> , >,<, <51AD70E8.70506@gmail.com>, ,,> , >, <, <6c0ed9da-0f29-4b6b-a804-771763454dd4@googlegroups.com>, , >, , > <,,,,> , >, <4ed43a69-0dfe-4078-a836-db5201811761@googlegroups.com>, , <2e1dbdc2-6bca-4c4e-93b0-4c0cddb72bc1@googlegroups.com> MIME-Version: 1.0 X-OriginalArrivalTime: 04 Jun 2013 11:58:28.0123 (UTC) FILETIME=[D33B0EB0:01CE611A] 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: 99 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370347111 news.xs4all.nl 15894 [2001:888:2000:d::a6]:58694 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46881 --_990eaae8-6984-49b0-b8c2-93999cfe444e_ Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable > Date: Tue=2C 4 Jun 2013 04:36:06 -0700 > Subject: Re: Apache and suexec issue that wont let me run my python scrip= t > From: nikos.gr33k@gmail.com > To: python-list@python.org >=20 > =D4=E7 =D4=F1=DF=F4=E7=2C 4 =C9=EF=F5=ED=DF=EF=F5 2013 2:27:25 =EC.=EC. U= TC+3=2C =EF =F7=F1=DE=F3=F4=E7=F2 Carlos Nepomuceno =DD=E3=F1=E1=F8=E5: > > The httpd processes are run by user 'nobody'. You have to change your h= ttpd.conf to assign the correct user or change the owner of the log file to= nobody. > >=20 > > On httpd.conf look for the following directives: > > User root > > Group root >=20 > Why some httpd run as root(first two) and the rest as nobody? The root processes are run by init during startup. The nobody processes are= started by the first httpd processes based on httpd.conf settings. > What is user 'nobody' anyways? Just a user with no shell access. > root@nikos [/home/nikos/www/data/apps]# nano /usr/local/apache/conf/httpd= .conf > root@nikos [/home/nikos/www/data/apps]# cat /usr/local/apache/conf/httpd= .conf | grep 'User root' > root@nikos [/home/nikos/www/data/apps]# cat /usr/local/apache/conf/httpd= .conf | grep 'user root' > root@nikos [/home/nikos/www/data/apps]# cat /usr/local/apache/conf/httpd= .conf | grep 'group root' > root@nikos [/home/nikos/www/data/apps]# cat /usr/local/apache/conf/httpd= .conf | grep 'Group root' >=20 > Doesn't seem to be there. You have to edit httpd.conf and change the User and Group directives. They = currently are set to nobody=2C so you have to look for ' User nobody' and = ' Group nobody'. Take care while editing httpd.conf. Make a backup copy just in case. =3B) = --_990eaae8-6984-49b0-b8c2-93999cfe444e_ Content-Type: text/html; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable


>=3B Date: Tue=2C= 4 Jun 2013 04:36:06 -0700
>=3B Subject: Re: Apache and suexec issue t= hat wont let me run my python script
>=3B From: nikos.gr33k@gmail.com<= br>>=3B To: python-list@python.org
>=3B
>=3B =D4=E7 =D4=F1=DF= =F4=E7=2C 4 =C9=EF=F5=ED=DF=EF=F5 2013 2:27:25 =EC.=EC. UTC+3=2C =EF =F7=F1= =DE=F3=F4=E7=F2 Carlos Nepomuceno =DD=E3=F1=E1=F8=E5:
>=3B >=3B The = httpd processes are run by user 'nobody'. You have to change your httpd.con= f to assign the correct user or change the owner of the log file to nobody.=
>=3B >=3B
>=3B >=3B On httpd.conf look for the following di= rectives:
>=3B >=3B User root
>=3B >=3B Group root
>=3B =
>=3B Why some httpd run as root(first two) and the rest as nobody?
The root processes are run by init during startup. The nobody processe= s are started by the first httpd processes based on httpd.conf settings.
>=3B What is user 'nobody' anyways?

Just a user with no shell= access.

>=3B root@nikos [/home/nikos/www/data/apps]# nano /usr/lo= cal/apache/conf/httpd.conf
>=3B root@nikos [/home/nikos/www/data/apps]= # cat /usr/local/apache/conf/httpd.conf | grep 'User root'
>=3B root@= nikos [/home/nikos/www/data/apps]# cat /usr/local/apache/conf/httpd.conf |= grep 'user root'
>=3B root@nikos [/home/nikos/www/data/apps]# cat /u= sr/local/apache/conf/httpd.conf | grep 'group root'
>=3B root@nikos [/= home/nikos/www/data/apps]# cat /usr/local/apache/conf/httpd.conf | grep 'G= roup root'
>=3B
>=3B Doesn't seem to be there.

You have t= o edit httpd.conf and change the User and Group directives. They currently = are set to nobody=2C so you have to look for ' User nobody' =3B and ' G= roup nobody'.

Take care while editing httpd.conf. Make a backup copy= just in case. =3B)

= --_990eaae8-6984-49b0-b8c2-93999cfe444e_--