Re: Edit as superuser in emacs?



Torben Knudsen <tk@xxxxxxxxx> writes:

"Carl" == Carl Johnson <carlj@xxxxxxxx> writes:

Carl> Gernot Hassenpflug <gernot@xxxxxxxxx> writes:
Carl Johnson <carlj@xxxxxxxx> writes:

David Kastrup <dak@xxxxxxx> writes:

Carl Johnson <carlj@xxxxxxxx> writes:

Is there any way to edit files as superuser from a normal user
emacs? >> If you have tramp installed (standard in Emacs 22 and
its pretests), >> just do >> C-x C-f /sudo::/etc/fstab RET

That sounds like exactly what I want but I have emacs 21 now.
I'll > check google and see if I can find whether I can install it
onto my > current emacs.

You could try installing emacs-snapshot, packages available in
several distributions, and some webpages explain straightforwardly
how to compile it yourself.

Carl> I actually spoke too soon. I checked the debian packages and
Carl> tramp is already available, so I just had to install the
Carl> package. I just now tested it and it works fine.

When I do C-x C-f /sudo::/etc/fstab RET

I get

ftp> open sudo
ftp: sudo: Unknown host

why is that?

Because you are neither using Emacs 22 nor have you installed tramp.
Have you read what you quoted?

--
David Kastrup
.



Relevant Pages

  • Re: Edit as superuser in emacs?
    ... That sounds like exactly what I want but I have emacs 21 now. ... You could try installing emacs-snapshot, packages available in ... David> Because you are neither using Emacs 22 nor have you installed ...
    (comp.emacs)
  • Re: Edit as superuser in emacs?
    ... That sounds like exactly what I want but I have emacs 21 now. ... You could try installing emacs-snapshot, packages available in ... Carl> I actually spoke too soon. ...
    (comp.emacs)
  • Re: Where is Phobos P430 QFE X1034A Driver
    ... The following packages are available: ... Installing Phobos P430 Adapter Driver for 32 bit PCI QuadPort ... devfsadm: driver failed to attach: pqfe ...
    (comp.sys.sun.admin)
  • Re: Why no R in Fedora (was Statistical Package (like Minitab) for Linux)
    ... > The fedora rpm provided at the CRAN site contains very few add-on ... > packages would provide a large amount of functionality. ... > Users can easily install.packageson top of this more stuff from CRAN. ... > I always seem to end up installing a few packages eg. lineno, ...
    (Fedora)
  • Re: Linux/Python Issues
    ... It doesn't suck if you're just installing one program, ... tool to retrieve packages, but then the developers got "feature envy" ... you've got to face the problem that your distribution isn't going to ...
    (comp.lang.python)