[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Editing system files from within Emacs



There are two solutions I use regularly for this situation--
and first off, whatever else you do, dont run
emacs/emacspeak permanently as root.

Solution 1)

In an eterm buffer, set TERM to vt100 
become root and run vi 

2) From your running emacspeak session (where you are logged
in as yourself)
open the system file as 
find-file
/root@localhost:/path
--this will prompt for the root password and use ftp to the
local machine under the hoods to open the file as root.

--Raman
Jason White writes:
 > Recently, I have confronted the problem of how best to edit system files
 > while logged in as an ordinary user and working via Emacspeak. My solution
 > involves visiting the relevant directory in shell mode, becoming the super
 > user, changing the ownership of the file temporarily from "root" to my
 > login name, editing the file in Emacs (with find-file: c-x, c-f) and then,
 > after having saved the file, changing its ownership back to "root". I also
 > tried running Emacs from an eterm buffer, but the cursor keys did not
 > operate correctly and editing text was not very convenient.
 > 
 > Has anyone devised a better approach than those outlined above?
 > 
 > Jason.
 > 
 > 
 > -----------------------------------------------------------------------------
 >        To unsubscribe or change your address send mail to
 > "emacspeak-request@cs.vassar.edu" with a subject of "unsubscribe" or "help"

-- 
Best Regards,
--raman

      Adobe Systems                 Tel: 1 (408) 536 3945   (W14-612)
      Advanced Technology Group     Fax: 1 (408) 537 4042 
      (W14 129) 345 Park Avenue     Email: raman@adobe.com 
      San Jose , CA 95110 -2704     Email:  raman@cs.cornell.edu
      http://labrador.corp.adobe.com/~raman/        (Adobe Intranet)
      http://cs.cornell.edu/home/raman/raman.html    (Cornell)
----------------------------------------------------------------------
    Disclaimer: The opinions expressed are my own and in no way should be taken
as representative of my employer, Adobe Systems Inc.
____________________________________________________________

-----------------------------------------------------------------------------
       To unsubscribe or change your address send mail to
"emacspeak-request@cs.vassar.edu" with a subject of "unsubscribe" or "help"


Emacspeak Files | Subscribe | Unsubscribe