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 07:22:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217601787 28394 80.91.229.12 (1 Aug 2008 14:43:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Aug 2008 14:43:07 +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 16:43:56 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 1KOvr9-0002kN-QN for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2008 16:43:48 +0200 Original-Received: from localhost ([127.0.0.1]:57863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOvqF-0004rt-1u for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2008 10:42:51 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m45g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-NNTP-Posting-Host: 88.108.234.15 Original-X-Trace: posting.google.com 1217600546 26371 127.0.0.1 (1 Aug 2008 14:22:26 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 1 Aug 2008 14:22:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m45g2000hsb.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:160788 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:56136 Archived-At: 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