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:29:03 +1000 Organization: Rapt Technologies Message-ID: <87r698tdb4.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 1217641292 17483 80.91.229.12 (2 Aug 2008 01:41:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2008 01:41:32 +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:42:21 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 1KP68P-0003dN-Sh for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Aug 2008 03:42:18 +0200 Original-Received: from localhost ([127.0.0.1]:57712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KP67V-0005rV-7m for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2008 21:41:21 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border2.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:cpwKLCuNId+VsDXq94BowP29Pwc= Original-Lines: 45 Original-NNTP-Posting-Host: 3f6aaa3d.news.astraweb.com Original-X-Trace: DXC=^JQj]j1AWO\; L?0kYOcDh@:IGb]mONgOi:dWSPbCfW_Y?2_; YdSITmQ>; =hFMgE]7; 2 Original-Xref: news.stanford.edu gnu.emacs.help:160817 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:56164 Archived-At: Joost Kremers writes: > Peter Dyballa wrote: >> You should try: >> >> sudo chown -R iainb:iainb ~iainb >> >> log off and in again. > > are you sure that's such a wise idea? changing ownership of literally > *everything* in someone's home dir? Not only is it a bad idea, it is addressing the symptom and not the cause. If emacs is creating these files as the OP suggested and those files are being created as root rather than as the user he is running as, I suspect he has a much bigger problem. Also, if the problem is due to some stuff up in his environment config, using the ~username may have unexpected results. Things I would look at include - 1. verify his user account settings e.g. uid, gid, home directory, umask etc. The 'id' command may be available (I don't use Mac and am not that familiar with BSD or systems derived from it). 2. Check to see who owns his home directory and what bits are set. For example, if the setuid bit is set on his home dir and for some reason it is owned by root, then files created in that directory will be created as root. Note that this could be occuring at a higher level e.g. the directory /home is usually owned by root. If its setuid was set, then home directories created within that directory may also be owned by root etc. 3. run a command like 'touch mytest' in a terminal and see if that is owned by root etc. If it is, then you know the problem is not emacs, but with his environment. 4. Check the emacs binary itself. Maybe it has had setuid bit set or something similar. Tim -- tcross (at) rapttech dot com dot au