[Top][All Lists]

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

Re: buffer uid

From: Tim X
Subject: Re: buffer uid
Date: 18 Oct 2003 17:05:32 +1000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

>>>>> "andrew" == andrew maguire <> 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)?

 andrew> If you have ftp access then you can try and use find-file
 andrew> with a path:

 andrew> /user@host:/path/to/file

 andrew> you will then be prompted for a password if necessary.  host
 andrew> can be "localhost" to use the same machine.  You can omit
 andrew> "user@" if you want to login as yourself.

An alternative solution is to use TRAMP instead of FTP. You can
configure TRAMP so that you can edit files under different uids on the
local (and remote) system. I use this when I want to edit a config
file owned by root, but don't want to exit my normal user session. 

A description of how to do this is in the TRAMP manual. This nice
thing about using tramp is you don't have to have ftp configured.


Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!

reply via email to

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