home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!noiro.acs.uci.edu!news.service.uci.edu!hardy
- From: hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy))
- Subject: Re: Question: How to use Emacs to access root-owned files
- Nntp-Posting-Host: golem.ps.uci.edu
- Message-ID: <HARDY.92Aug12175216@golem.ps.uci.edu>
- In-reply-to: bob@MorningStar.Com's message of Wed, 12 Aug 1992 16:01:49 GMT
- Newsgroups: comp.emacs
- Organization: Department of Physics, UC Irvine, CA 92717-4575, USA
- Lines: 35
- Distribution: comp
- References: <BETSYS.92Aug10171110@ra.cs.umb.edu>
- <BOB.92Aug12120143@volitans.MorningStar.Com>
- Date: 13 Aug 92 00:52:43 GMT
-
- 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.
-
- If your system is secure enough you can do even better -- make an
- appropriate entry in your .netrc file
- machine localhost login root password <rootpassword>
- or put this in a file which ange-ftp knows about and which is
- read-write-protected and mayne hidden in some subdirectory.
- Then ange-ftp lets you dired as root to your heart's delight.
- If you are concerned about doing "bad things" as root you may try to
- log in as bin, or something like this.
-
- I don't know how we lived before Andy Norman made ange-ftp available
- ...
- --
- Hardy
- -----
- Meinhard E. Mayer, Department of Physics, UC Irvine
- e-mail: hardy@golem.ps.uci.edu (preferred) or MMAYER@UCI.BITNET
-
-