home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!crynwr!nelson
- From: nelson@crynwr.com (Russell Nelson)
- Newsgroups: comp.emacs
- Subject: Question: How to use Emacs to access root-owned files
- Distribution: world
- Message-ID: <713718335snx@crynwr.com>
- References: <RG.92Aug12201702@nymph.msel.unh.edu>
- Date: Thu, 13 Aug 92 15:05:35 GMT
- Organization: Crynwr Software
- Lines: 37
-
- In article <RG.92Aug12201702@nymph.msel.unh.edu> rg@msel.unh.edu writes:
-
- >>>>> "Bob" == Bob Sutterfield <bob@MorningStar.Com> writes:
- Bob> Nntp-Posting-Host: volitans.morningstar.com
-
- Bob> In article <BETSYS.92Aug10171110@ra.cs.umb.edu> betsys@cs.umb.edu (Elizabeth Schwartz) writes:
-
- Elizabeth> I need a bit of code that prompts me for the root passwd and then
- Elizabeth> lets me read and write as root. (obviously, it mustn't know the
- Elizabeth> passwd!)
-
- Bob> Get .. [ange-ftp]
-
- Bob> I say ^X^F/user@hostname:/path/to/file, and ange-ftp prompts me for
- Bob> that user's password on that host. If "user" is "root", you'll be
- Bob> editing a file as root on that host. If "hostname" is "localhost",
- Bob> you'll have an Emacs buffer that's root on the same machine as the
- Bob> Emacs is running on. When you ^X^S (or whatever), ange-ftp does
- Bob> whatever's necessary to write the file back appropriately via FTP.
-
- KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE!
- KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE!
- KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE!
- KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE! KLUDGE!
-
- IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS!
- IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS!
- IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS!
- IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS! IT WORKS!
-
- [ Hi, Rog ]
-
- I do this all the time, and even though you think it's a kludge, it's
- much more secure than making Emacs suid root. And anyway, ange-ftp
- is SOOOO useful that you should have it installed anyway. I'm
- thinking about adding it to my MS-DOS Emacs editor, Freemacs.
-
- -russ <nelson@crynwr.com> I'm proud to be a humble Quaker!
- Crynwr Software Crynwr Software sells packet driver support.
- 11 Grant St. 315-268-1925 Voice
- Potsdam, NY 13676 315-268-9201 FAX
-