maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   sudoers file (https://talk.maemo.org/showthread.php?t=64842)

roundyz 2010-11-01 08:41

sudoers file
 
Hello,

I have borked my sudoers file with a syntax error, if this was a normal computer i'd just chroot in and edit the file. Other than mer is there any other way to fix this?

regards,

AlMehdi 2010-11-01 09:10

Re: sudoers file
 
You meen that you have no way to gain root? Have you tried "su" or reinstall rootsh?

karimko 2010-11-01 09:29

Re: sudoers file
 
Try this...

Get into R&D mode using "flasher --enable-rd-mode"
Fix up your sudoers file
Disable R&D.

karimko 2010-11-01 09:35

Re: sudoers file
 
If you are not familiar with flasher go here

Radicalz38 2010-11-01 09:45

Re: sudoers file
 
i have encountered this problem many2 times already as i have played my sudoers file to add security to my phone and now whenever i try to gainroot or root it asks for my own password 1st. And about your problem only way is to reflash fiasco. No you can't fix that even with rd mode as sudoers file manage all the admin operations. And only admin rights can fix that. Not sure about mer as i have never tested it.

karimko 2010-11-01 09:56

Re: sudoers file
 
@Radicalz38: I had the same problem as roundyz and entering R&D mode gained me root access to change the sudeors file. Dunno why it didn't work on your end. But yes if that doesn't work then a reflash is in place.

Radicalz38 2010-11-01 10:00

Re: sudoers file
 
well i guess it depends on where you've messed it up then. Because i was tweaking the gainroot and sudoers file at that time.

ruskie 2010-11-01 12:25

Re: sudoers file
 
Or you can boot into a rescue initrd(see meego wiki on how to do it). But it lacks ubifsattach so it's hard to get to root I had tno roll my own. I'm planing on rolling my own rescue initrd that would be nearly automatic in terms of mounting all the relevant systems and then gives you a terminal to fix stuff up. But it'll be a while before I start/finish that.

roundyz 2010-11-01 12:50

Re: sudoers file
 
Thanks lads, I will try when I get home. I cant reinstall anything because apman fails...will try the r+d route. Cheers.


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

vBulletin® Version 3.8.8