View Single Post
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#4
Originally Posted by jedi View Post
How did you edit it without root access?


it might help if you paste the contents of the file here...
Presumably he did have root access, but gaining it requires a working sudoers file (as does installing packages, etc) so once you've messed it up then you're stuffed.

Originally Posted by facs View Post
I've edited file /etc/sudoers on N900 and now I receive this error:
sudo parse error in /etc/sudoers,,,,
I 've not root access, no usb or wifi access. How can I do to solve this problems?
R&D mode is a possibility, otherwise a reflash will be required.

Incidentally, you shouldn't edit /etc/sudoers directly - you should create a new file (or edit an existing one) in /etc/sudoers.d and the run update-sudoers. That includes a check for correctness, so should prevent this from happening. If you do need to edit the file directly, use visudo which will, again, check the file before saving it.