home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!rock!concert!duke!khera
- From: khera@cs.duke.edu (Vivek Khera)
- Newsgroups: comp.emacs
- Subject: Re: Question: How to use Emacs to access root-owned files
- Message-ID: <KHERA.92Aug12154339@thneed.cs.duke.edu>
- Date: 12 Aug 92 19:43:39 GMT
- References: <BETSYS.92Aug10171110@ra.cs.umb.edu>
- <BOB.92Aug12120143@volitans.MorningStar.Com>
- Sender: news@duke.cs.duke.edu
- Distribution: comp
- Organization: Duke University CS Dept., Durham, NC
- Lines: 24
- Nntp-Posting-Host: thneed.cs.duke.edu
- In-reply-to: bob@MorningStar.Com's message of 12 Aug 92 16:01:49 GMT
- X-Md4-Signature: 8ae67034e90c374f531d564f57b4459d
-
- In article <BOB.92Aug12120143@volitans.MorningStar.Com> bob@MorningStar.Com (Bob Sutterfield) writes:
-
- 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.
-
- This, of course, assumes that ftp for root is not disabled. This
- trick will not work for, for example, in a set up like ours.
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Vivek Khera, Gradual Student/Systems Guy Department of Computer Science
- Internet: khera@cs.duke.edu Box 90129
- (MIME mail accepted) Durham, NC 27708-0129 (919)660-6528
-