Active Topics

 


Reply
Thread Tools
Posts: 9 | Thanked: 2 times | Joined on Nov 2010
#1
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?

Thanks a lot.
 
jedi's Avatar
Posts: 1,411 | Thanked: 1,330 times | Joined on Jan 2010 @ Tatooine
#2
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?

Thanks a lot.
How did you edit it without root access?


it might help if you paste the contents of the file here...
 
Posts: 9 | Thanked: 2 times | Joined on Nov 2010
#3
I've edited the file with root access (sudo gainroot), after I've closed root session .....
 
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.
 
Posts: 46 | Thanked: 31 times | Joined on Jun 2010 @ Lebanon
#5
+1 to R&D mode, tried it myself when i was stuck in the OP's situation.
 
Posts: 9 | Thanked: 2 times | Joined on Nov 2010
#6
Could you explain to me what command I must launch?
flasher-3.5 --enable-rd-mode
and after?
Thanks a lot.
 
Posts: 46 | Thanked: 31 times | Joined on Jun 2010 @ Lebanon
#7
after that:
1. Boot normally
2. You'll be able to have root access
3. Revert your sudoers file
4. Restart and disable RD mode.

 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#8
Originally Posted by facs View Post
Could you explain to me what command I must launch?
flasher-3.5 --enable-rd-mode
and after?
Thanks a lot.
That should be it. You'll need to set the N900 into flashing mode first though.
 
Posts: 9 | Thanked: 2 times | Joined on Nov 2010
#9
thanks a lot !!!!!
I try and I send to you the result.
 
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#10
What program did you use to edit the file?

You should only use 'vi' to edit the file (using the command 'visudo'), as other editors can give syntax errors.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:43.