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

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

Re: buffer uid


From: J-P Theberge
Subject: Re: buffer uid
Date: 10 Oct 2003 16:33:00 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Arthur Davis <adavis@torrentnet.com> writes:

> Is it possible to open a buffer and edit it as a different user?  In
> other words, if I have two user accounts, can I run emacs from one
> account and edit a file owned by the other account (and not writable
> by the account running emacs)?

Hi,

I use this:

(defun find-file-as-another-user (f u)
  (interactive "sFind file: \ns as user: ")
  (require 'tramp)
  (find-file (concat "/su:" u "@localhost:" f)))

It require tramp

-jp


reply via email to

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