From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Files created with emacs are owned by system Date: Sat, 02 Aug 2008 11:33:53 +1000 Organization: Rapt Technologies Message-ID: <87myjwtd32.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217641329 17568 80.91.229.12 (2 Aug 2008 01:42:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2008 01:42:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 02 03:43:00 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 1KP695-0003pu-Af for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Aug 2008 03:42:59 +0200 Original-Received: from localhost ([127.0.0.1]:58120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KP68A-0006ha-Mj for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2008 21:42:02 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:m9juxE4WeN/VFBgS7kwiEYoFHcE= Original-Lines: 56 Original-NNTP-Posting-Host: 3f6aaa3d.news.astraweb.com Original-X-Trace: DXC=bXM?KU:[lXKDIol_\Lk[aFL?0kYOcDh@JIGb]mONgOiJdWSPbCfW_YO2_; YdSITmQN; =hFMgE]7; B Original-Xref: news.stanford.edu gnu.emacs.help:160818 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:56165 Archived-At: iainb.forms@googlemail.com writes: > 1. I'd use chown, get the error message, curse, and then add sudo to > the front :) > > 2. I own the directory the Dummyfile.hs was in > drwxr-xr-x 20 iainb iainb 680 Aug 1 15:04 Write a Scheme > compiler in 48 hours > > 3. GNU Emacs 21.2.1 > > 4. How do you know this?: I press C-x C-f, type in the filename, press > return, and then use Finder > Get Info or ls -al from a terminal; > -rw-r--r-- 1 root iainb 8 Aug 1 12:27 Dummyfile.hs > -rw-r--r-- 1 root iainb 9 Aug 1 15:03 Dummyfile2.hs > > 5. How are you launching Emacs?: I open a terminal, type "emacs", > press return. If I run "whoami", then I'm me (iainb) and not root. > > 6. What is this file?: any file I save from Emacs using C-x C-f. > > 7. emacs -q: > -rw-r--r-- 1 root iainb 10 Aug 1 15:04 Dummyfileq.hs > > 8. emacs -Q: unknown option; I also can't find it in the man page. > > 9. sudo emacs: > -rw-r--r-- 1 root iainb 9 Aug 1 15:12 Dummyfilesudo.hs > > 10. su -l root > emacs: > -rw-r--r-- 1 root iainb 9 Aug 1 15:16 Dummyfilesuroot.hs > > and in response to the "use a bulldozer to crack a nut" suggestions ;) > 11. I'm not rebuilding OSX just for Emacs > 12. I'm not recursing through every file to change it's ownership > > > Most importantly, (probably) it does seem that emacs is running as > root > ps -aux | grep emacs: > root 1805 0.0 -0.2 48104 4548 p2 S+ 7:38PM 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. > > Regards, > Iain What are the permissions on the emacs binary? Tim -- tcross (at) rapttech dot com dot au