home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / emacs / 2832 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.9 KB

  1. Path: sparky!uunet!stanford.edu!rock!concert!duke!khera
  2. From: khera@cs.duke.edu (Vivek Khera)
  3. Newsgroups: comp.emacs
  4. Subject: Re: Question: How to use Emacs to access root-owned files
  5. Message-ID: <KHERA.92Aug12154339@thneed.cs.duke.edu>
  6. Date: 12 Aug 92 19:43:39 GMT
  7. References: <BETSYS.92Aug10171110@ra.cs.umb.edu>
  8.     <BOB.92Aug12120143@volitans.MorningStar.Com>
  9. Sender: news@duke.cs.duke.edu
  10. Distribution: comp
  11. Organization: Duke University CS Dept., Durham, NC
  12. Lines: 24
  13. Nntp-Posting-Host: thneed.cs.duke.edu
  14. In-reply-to: bob@MorningStar.Com's message of 12 Aug 92 16:01:49 GMT
  15. X-Md4-Signature: 8ae67034e90c374f531d564f57b4459d
  16.  
  17. In article <BOB.92Aug12120143@volitans.MorningStar.Com> bob@MorningStar.Com (Bob Sutterfield) writes:
  18.  
  19.    In article <BETSYS.92Aug10171110@ra.cs.umb.edu> betsys@cs.umb.edu (Elizabeth Schwartz) writes:
  20.  
  21.       I need a bit of code that prompts me for the root passwd and then
  22.       lets me read and write as root. (obviously, it mustn't know the
  23.       passwd!)
  24.  
  25.    Get ftp.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/ange-ftp.tar.Z.
  26.  
  27.    I say ^X^F/user@hostname:/path/to/file, and ange-ftp prompts me for
  28.    that user's password on that host.  If "user" is "root", you'll be
  29.    editing a file as root on that host.  If "hostname" is "localhost",
  30.    you'll have an Emacs buffer that's root on the same machine as the
  31.    Emacs is running on.  When you ^X^S (or whatever), ange-ftp does
  32.    whatever's necessary to write the file back appropriately via FTP.
  33.  
  34. This, of course, assumes that ftp for root is not disabled.  This
  35. trick will not work for, for example, in a set up like ours.
  36. --
  37. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  38. Vivek Khera, Gradual Student/Systems Guy  Department of Computer Science
  39. Internet:   khera@cs.duke.edu             Box 90129
  40.             (MIME mail accepted)          Durham, NC 27708-0129 (919)660-6528
  41.