unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@spamto.devnul.com>
Subject: Re: buffer uid
Date: 18 Oct 2003 17:05:32 +1000	[thread overview]
Message-ID: <87ismnrpoj.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: mailman.1794.1066311260.21628.help-gnu-emacs@gnu.org

>>>>> "andrew" == andrew maguire <andrew.maguire@ps.ge.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)?

 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



-- 
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	other threads:[~2003-10-18  7:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1794.1066311260.21628.help-gnu-emacs@gnu.org>
2003-10-18  7:05 ` Tim X [this message]
2003-10-16 13:30 buffer uid andrew.maguire
     [not found] <mailman.1502.1065808219.21628.help-gnu-emacs@gnu.org>
2003-10-10 18:02 ` Stefan Monnier
2003-10-10 20:33 ` J-P Theberge
  -- strict thread matches above, loose matches on Subject: below --
2003-10-10 17:48 Arthur Davis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ismnrpoj.fsf@tiger.rapttech.com.au \
    --to=timx@spamto.devnul.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).