11
5
I made lengthy changes to a configuration file on a Ubuntu Linux computer with the vi editor. Unfortunately, I forgot to sudo first, so now I'm in the editor, but can't save my changes because of missing rights. Can I retroactively sudo the user on that terminal, or what would be the best course of action to take?
2
See also http://stackoverflow.com/questions/1005/getting-root-permissions-on-a-file-inside-of-vi
– therefromhere – 2009-10-10T20:00:10.277