The answers in the previous question did not help - Can't edit /etc/profile on my mac
I want to edit /etc/profile but I can't, even when I open it with sudo. I manually changed the permissions on the file with
sudo chmod u+w /etc/profile
And now I get a different error when I try to save the file. Instead of it telling me I don't have permission, the dialog simply says "The document 'profile' could not be saved." How can I change the file?