Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'root': 0.05; 'binary': 0.07; 'latter': 0.09; 'subject:script': 0.09; '-rf': 0.16; 'above?': 0.16; 'did.': 0.16; 'entries.': 0.16; 'etc?': 0.16; 'executed,': 0.16; 'fiddle': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'given,': 0.16; 'hint': 0.16; 'it),': 0.16; 'subject:Apache': 0.16; 'subject:issue': 0.16; 'subject:run': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'thu,': 0.19; 'shell': 0.22; 'commands,': 0.24; 'password.': 0.24; 'header:In- Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'gives': 0.31; 'getting': 0.31; 'correctly.': 0.31; 'didnt': 0.31; 'subject:that': 0.31; 'figure': 0.32; 'addresses': 0.33; 'there,': 0.34; "i'd": 0.34; 'could': 0.34; 'received:209.85': 0.35; 'created': 0.35; 'received:209.85.220': 0.35; 'done.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'done,': 0.36; 'executing': 0.36; 'done': 0.36; "didn't": 0.36; 'so,': 0.37; 'list': 0.37; 'received:209': 0.37; 'easily': 0.37; 'mine': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'anything': 0.39; 'extremely': 0.39; 'skip:. 10': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'easy': 0.60; 'commands': 0.60; 'is.': 0.60; 'logs': 0.60; 'full': 0.61; 'new': 0.61; 'show': 0.63; 'worth': 0.66; 'services': 0.66; 'home': 0.69; 'fact,': 0.69; 'user,': 0.69; "it'd": 0.84; 'wipe': 0.84; 'imagine': 0.93; 'issued': 0.93; 'subject:let': 0.93; 'serious': 0.97; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jlVIhBqPRoAzt9DkgTjZDu4A4wkPWhYwdbvqi5sT8nE=; b=CMz7PywpxGuZteftaUWZxuwrRlEwahmADu1gq9Z7ncfLGofZ49FN8T4aBaNzd8vUe7 swObYdNrSj4fAVBYXOLsJPD1fwWj+TMs0bLnkGzYP2UCDA+ZTLvDvjvMlO0Ifm9KK2nr Uq+Ib1f29exrfJ+pIqK5xqgN7/cq6LXwxQygKYHZ57UE1hGN70IROsoZ4WqzQZPW7LKC rhom3xT+R8pz7EoAQ/3yj0Wi/OcuTmiTtUhDgiViqjG57GK5Euc0vXT6Thu60qBWu5KX qLpG2C2WlF0kRE7WX2mRgoPanqixIZie6n+SWaJiAwzUhhSCK3t0rxrNwQ+oQU3fLsu1 tzzg== MIME-Version: 1.0 X-Received: by 10.52.164.163 with SMTP id yr3mr17557057vdb.76.1370452606696; Wed, 05 Jun 2013 10:16:46 -0700 (PDT) In-Reply-To: <83de920f-dea8-49ad-9f6e-e25d3b2d8446@googlegroups.com> References: <20a49aac-3867-481f-96d4-c95a050781ed@googlegroups.com> <592c84d8-2e86-4480-b784-c3ccadc8360d@googlegroups.com> <06fd6c2e-0979-4d61-b75a-6d9df7c1b624@googlegroups.com> <70390d65-5313-46bf-8110-b25f5fc9f76f@googlegroups.com> <8d52505a-7252-419b-8b4f-61e5ee56a78a@googlegroups.com> <2aef9194-ef36-45db-8c77-9510d3f14ebe@googlegroups.com> <8df8a9df-dbb9-4f35-a6a3-b45aa32a848b@googlegroups.com> <1496e27c-7870-48d2-afb0-1bf626e24b5f@googlegroups.com> <83de920f-dea8-49ad-9f6e-e25d3b2d8446@googlegroups.com> Date: Thu, 6 Jun 2013 03:16:46 +1000 Subject: Re: Apache and suexec issue that wont let me run my python script From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable 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: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370452608 news.xs4all.nl 15911 [2001:888:2000:d::a6]:43336 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47116 On Thu, Jun 6, 2013 at 3:02 AM, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2= wrote: > =D4=E7 =D4=E5=F4=DC=F1=F4=E7, 5 =C9=EF=F5=ED=DF=EF=F5 2013 7:33:50 =EC.= =EC. UTC+3, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5: >> In fact, I didn't even bother fiddling with syslog. All I did was >> .bash_history. Of course, I wasn't worried about you getting my IP >> addresses (one of them is public anyway, and the other isn't mine any >> longer than I'm using it), and nothing I did there was sufficiently >> serious to be worth hiding, but I just did the history so I could >> point out how easy this is. > > So, by executing .bash_history commands issued are cleared. okey. > What abiut 'syslog' that Heiko mentioned. Since you didnt fiddle with sys= log can the latter show me what commands have been executed, files opened, = commands given, services started-stopped etc? Poke around in /var/log - I didn't tamper with anything there, so you may well find log entries. But I don't know for sure what I did and what I didn't do. >> and nothing I did there was sufficiently serious to be worth hiding. > > Actually i believ you, because if you had malice in mind you could 'rm -r= f /' or deface frontpages which you didnt do. > > But is there a way for me to see what commands have been issued? syslog p= erhaps as ia sk above? > Since you didn't hurm the system why the need of wipe clean bash's histor= y? There won't be a full list of all commands, but you may find some hints. And why wipe it? Just to show how easily it could be done. Imagine if I'd: 1) Created a new user, with a home directory of /etc 2) Made a setuid root binary that gives me a shell 3) Removed all logfile traces of having done so I could then *retain full access* even after you change the root password. And you would not know what I'd done, if I do the logfile wipes correctly. You might see some hint (eg that logs were rotated prematurely), but it'd be extremely hard to figure out what I did. ChrisA