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: starting emacs remote doesn't load .emacs Date: Fri, 12 Oct 2007 12:43:07 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87przluk78.fsf@lion.rapttech.com.au> References: <470CB421.3010606@softexperience.ro> <87bqb6xlh7.fsf@lion.rapttech.com.au> <87wsttspgz.fsf@W0053328.mgh.harvard.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192161662 2975 80.91.229.12 (12 Oct 2007 04:01:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2007 04:01:02 +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 Oct 12 06:00:52 2007 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 1IgBO2-0004Ah-Vc for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Oct 2007 05:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgBNw-0006Ab-If for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Oct 2007 23:40:24 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!newspeer1.nwr.nac.net!border2.nntp.dca.giganews.com!nntp.giganews.com!sn-xt-sjc-04!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:/de/hnaY1lcKJtGXUZ3CE1lq3rQ= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 44 Original-Xref: shelby.stanford.edu gnu.emacs.help:152854 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:48348 Archived-At: jadamson@partners.org (Joel J. Adamson) writes: > Tim X writes: > >> Stefan Horomnea writes: > >> 3. If you are running emacs 22, you iwll have tramp installed. tramp will >> allow you to easily edit files owned by root or execute commands as >> root. Use this rather than running emacs as root. > > To open a file, use /su:: > > To use dired in root mode /su::/directory > > Then get out of root mode as soon as possible (we're telling you this > because we've made mistakes ourselves --- well, at least I have). > Hehehe. Night before end of year meeting with my supervisor. Noticed a package I'd installed that I no longer wanted. Cd to the root of the package dir and entered rm -rf *. Sitting there, quite tired and not paying careful attention. Noticed lines coming up about not being able to delete from a read only device. thinking, thats strange. why would I see those messages? then it hit me. I was still logged in as root. The cd had left me at the / dir, so rm -rf * was deleteing my whole file system. The messages were a result of trying to delete files from my cdrom. My partner gets very worried as I walk into the lounge room, sit down and just laugh in a disturbing manic way. Worst part, I already knew it was a bad idea to run as root when not necessary. However, I thought I knew what I was doing and would be careful enough - after all, I had been working as a sys admin for a number of years and was pretty experienced. Two lessons learnt - never run as root unless you have to and be careful of the over confidence and arrogance that can come with experience! Tim -- tcross (at) rapttech dot com dot au