[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac terminal.app: starting emacs, possibly as sudo
From: |
Michael Albinus |
Subject: |
Re: Mac terminal.app: starting emacs, possibly as sudo |
Date: |
Mon, 17 Oct 2011 10:07:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Marius Hofert <marius.hofert@math.ethz.ch> writes:
> Dear Perry, Dear Peter,
Hi,
> Well, maybe I should rethink the whole process: When do I want to open
> emacs as root? From time to time, I open a file and modify it. When I
> try to save it, I get the read-only warning. This means I would like
> to be su to modify this file. It's probably best to just open it with
> C-x C-f /sudo::path-to-file... But by closing and reopening all my
> modifications to the file are lost. How can one avoid this?
If you edit file /a/b/c and you cannot save it because it is owned by
root, you could save it by "C-x C-w /sudo::/a/b/c".
> Cheers,
>
> Marius
Best regards, Michael.
Re: Mac terminal.app: starting emacs, possibly as sudo, Peter Dyballa, 2011/10/16
- Re: Mac terminal.app: starting emacs, possibly as sudo, Marius Hofert, 2011/10/17
- Re: Mac terminal.app: starting emacs, possibly as sudo,
Michael Albinus <=
- Re: Mac terminal.app: starting emacs, possibly as sudo, Marius Hofert, 2011/10/17
- Re: Mac terminal.app: starting emacs, possibly as sudo, Michael Albinus, 2011/10/17
- Re: Mac terminal.app: starting emacs, possibly as sudo, Marius Hofert, 2011/10/17
- Re: Mac terminal.app: starting emacs, possibly as sudo, Peter Dyballa, 2011/10/17
Re: Mac terminal.app: starting emacs, possibly as sudo, Perry Smith, 2011/10/17
Re: Mac terminal.app: starting emacs, possibly as sudo, Peter Dyballa, 2011/10/17
Re: Mac terminal.app: starting emacs, possibly as sudo, Peter Dyballa, 2011/10/17