[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to change and save a read-only file?
From: |
Marius Hofert |
Subject: |
How to change and save a read-only file? |
Date: |
Sat, 29 Jun 2013 11:14:00 +0200 |
Hi,
I often would like to edit files in emacs, which are write-protected
(owned by root, for example). With "C-x C-q" I can disable 'read-only
mode', which allows me to make changes in the file. But when I want to
save the file, I obtain "File ... is write-protected; try to save
anyway? (y or n)". Even if I choose 'y', it fails (*Messages* saying:
"basic-save-buffer-2: Doing chmod: operation not permitted").
What's the 'correct' approach to easily edit (change + save) such files?
Cheers,
Marius
- How to change and save a read-only file?,
Marius Hofert <=