From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: J-P Theberge Newsgroups: gmane.emacs.help Subject: Re: buffer uid Date: 10 Oct 2003 16:33:00 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065819050 20637 80.91.224.253 (10 Oct 2003 20:50:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2003 20:50:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 22:50:49 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A84Do-0000tL-00 for ; Fri, 10 Oct 2003 22:50:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A84D9-0002gI-4e for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2003 16:50:07 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed-east.nntpserver.com!nntpserver.com!diablo.voicenet.com!wesley.videotron.net!weber.videotron.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-NNTP-Posting-Host: 66.130.17.246 Original-X-Complaints-To: abuse@videotron.ca Original-X-Trace: weber.videotron.net 1065817822 66.130.17.246 (Fri, 10 Oct 2003 16:30:22 EDT) Original-NNTP-Posting-Date: Fri, 10 Oct 2003 16:30:22 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:117202 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13130 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13130 Arthur Davis 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