Cant’ save /etc/sudoers (Ubuntu)

amazon ec2amazon-web-servicesubuntu-11.04

Question is;

I just setup AWS EC2 micro instance = Ubuntu 11.04 32bit – (ami-e9d81980)
All is running well. Added new user successfully and now want to give root access to new-user. So I did;

$ sudo visudo
new-user    ALL=(ALL) ALL

Problem is when I ESC:wq I get [ Unknown Command ] – Scratching my head. Any help would be appreciated. Thank you.

Best Answer

Your best bet in Ubuntu is to switch your editor in alternatives:

sudo update-alternatives --config editor

and select one of the vim options.

Related Topic