Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!merlin.usc.edu!usc.edu!raulmill From: raulmill@usc.edu (Raul Deluth Rockwell) Newsgroups: gnu.emacs Subject: Re: Editing a file as super user Message-ID: Date: 12 Sep 89 06:35:04 GMT References: Sender: news@merlin.usc.edu Distribution: gnu Organization: University of Southern California, Los Angeles, CA Lines: 21 In article tjfs@tadtec.uucp (Tim Steele) writes: What's the favourite way of getting around the problem where a sysadmin "lives in Emacs" but wants to edit a privileged file? At the moment I do: [ . . . icky hack elided . . . ] Grubby! Any better suggestions? I can't even edit it in place and save it out easily, like I can with vi, because Emacs notices I'm not allowed to write it and marks the buffer read only. I don't know if there are any neat tricks to su around in emacs. Especially on a system which can't support two emacs jobs concurrently (which I think I remember you saying in the part I elided). However, you can always use toggle-read-only (bound to C-X C-Q on my system) to edit the image of the file. -- Raul Rockwell ! INTERNET: raulmill@usc.edu ! UUCP: ...uunet!usc!raulmill ! 55 mph = 82 nc U.S.SNAIL: 721 E Windsor #4, GLENDALE CA 91205 !