bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: me and me as root must wastefully use separate emacses?


From: Gaute B Strokkenes
Subject: Re: me and me as root must wastefully use separate emacses?
Date: Mon, 25 Feb 2002 06:15:03 +0000
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i586-pc-linux-gnu)

On 23 Feb 2002, jidanni@deadspam.com wrote:
> So I guess there is no way for two users [me and me as root] to use
> one emacs, and each must start separate emacses [wasting some memory
> I suppose].  I had emacsclient dreams, but when it comes to writing
> the file, you aren't root [or are not plain me].
> 
> OK, start a whole new emacs just to edit one little file as root.

The TRAMP package can be used to edit files owned by another user.  It
is a sort of generalised Ange-FTP, and offers (for instance) the `sum'
access method for this purpose.  See

    http://sourceforge.net/projects/tramp/

> Hmm, do I need to make a shell script wrapper?
> cp $file /tmp
> chown me /tmp/$file
> emacsclient /tmp/$file
> chown root /tmp/$file
> cp /tmp/$file $file
> 
> sheesh, hope nothing goes wrong.

-- 
Gaute Strokkenes                        http://www.srcf.ucam.org/~gs234/
Was my SOY LOAF left out in th'RAIN?  It tastes REAL GOOD!!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]