Always use sudo visudo for this. Just going right ahead and editing it can be extremely dangerous; messing up the file on a limited permissions system like the N900 can cause brickage.