home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / emacs / 2827 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.3 KB  |  29 lines

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