From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: iainb.forms@googlemail.com Newsgroups: gmane.emacs.help Subject: Re: Files created with emacs are owned by system Date: Fri, 1 Aug 2008 08:04:26 -0700 (PDT) Organization: http://groups.google.com Message-ID: <626685cb-27d2-4a29-93a9-71079e51d715@m44g2000hsc.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1217605263 9020 80.91.229.12 (1 Aug 2008 15:41:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Aug 2008 15:41:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 01 17:41:54 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KOwlJ-0002cN-Nl for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2008 17:41:50 +0200 Original-Received: from localhost ([127.0.0.1]:51712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOwkP-0006kK-Af for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2008 11:40:53 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!out03a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!postnews.google.com!m44g2000hsc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: 88.108.234.15 Original-X-Trace: posting.google.com 1217603067 1276 127.0.0.1 (1 Aug 2008 15:04:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 1 Aug 2008 15:04:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m44g2000hsc.googlegroups.com; posting-host=88.108.234.15; posting-account=fg40GQoAAAAbcg_X6oBFLMqLD20ppQOs User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/523 (KHTML, like Gecko, Safari/523.10) OmniWeb/v621.0.99313, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160790 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56139 Archived-At: On Aug 1, 3:33=A0pm, Joost Kremers wrote: > iainb.fo...@googlemail.com wrote: > > 3. GNU Emacs 21.2.1 > [...] > > 8. emacs -Q: unknown option; I also can't find it in the man page. > > -Q is a fairly new option. perhaps it was only introduced with emacs 22. > > > Most importantly, (probably) it does seem that emacs is running as > > root > > ps -aux | grep emacs: > > root =A0 =A0 =A01805 =A0 0.0 -0.2 =A0 =A048104 =A0 4548 =A0p2 =A0S+ =A0= =A07:38PM =A0 0:00.36 > > emacs > > > I have no idea why it's doing this or how to change it. If I quit > > emacs and while in the same terminal run "whoami", I'm still iainb. > > do: > > ls -l $(which emacs) > > i'm suspecting that your permissions will be set to 'rws' for the owner, > meaning that the binary is suid (i.e. it runs as the owner of the file, i= n > this case root, not as the user that's actually started the process.) > > -- > Joost Kremers =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0joostkrem...@yahoo.com > Selbst in die Unterwelt dringt durch Spalten Licht > EN:SiS(9) well, I've installed emacs version 22.2 into /usr/local and it doesn't save the files as root, it saves them as me. For the record ls -l /usr/local/bin/emacs -rwxr-xr-t 2 root wheel 9673784 Aug 1 15:36 /usr/local/bin/emacs ls -l /usr/bin/emacs -r-sr-xr-x 1 root wheel 30008 Aug 19 2006 /usr/bin/emacs Many thanks to everyone for the input, I doubt I'd have bothered to look for the newer version if not prompted and poked by your questions. Regards, Iain