I am using Emacs 24.3 on Mac OS X 10.9.4 and I am trying to edit
/etc/profile with that. It obviously does not work when starting the GUI version, but for some reason, it also does not work when starting it with
sudo from the command line. When I run
sudo emacs /etc/profile
from the terminal, Emacs still complains that the file is in read-only mode and it cannot write it:
Buffer is read-only: #<buffer profile>
What am I doing wrong?