home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.emacs
- Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!mstar!mstar!bob
- From: bob@MorningStar.Com (Bob Sutterfield)
- Subject: Re: Question: How to use Emacs to access root-owned files
- In-Reply-To: betsys@cs.umb.edu's message of 10 Aug 92 22: 11:10 GMT
- Message-ID: <BOB.92Aug12120143@volitans.MorningStar.Com>
- Sender: news@MorningStar.Com
- Nntp-Posting-Host: volitans.morningstar.com
- Organization: Morning Star Technologies
- References: <BETSYS.92Aug10171110@ra.cs.umb.edu>
- Distribution: comp
- Date: Wed, 12 Aug 1992 16:01:49 GMT
- Lines: 14
-
- In article <BETSYS.92Aug10171110@ra.cs.umb.edu> betsys@cs.umb.edu (Elizabeth Schwartz) writes:
-
- I need a bit of code that prompts me for the root passwd and then
- lets me read and write as root. (obviously, it mustn't know the
- passwd!)
-
- Get ftp.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/ange-ftp.tar.Z.
-
- I say ^X^F/user@hostname:/path/to/file, and ange-ftp prompts me for
- that user's password on that host. If "user" is "root", you'll be
- editing a file as root on that host. If "hostname" is "localhost",
- you'll have an Emacs buffer that's root on the same machine as the
- Emacs is running on. When you ^X^S (or whatever), ange-ftp does
- whatever's necessary to write the file back appropriately via FTP.
-