It is not the editor. Root can modify any file. But how can you use Notepad on Linux? Anyway, Ubuntu has command editor which starts a sensible editor, use that from command line. But if you have Ubuntu, it does not have root user. .Did you remember sudo in front of the editor command?