maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   Application manager doesn't work -- locked out of root (https://talk.maemo.org/showthread.php?t=14096)

daaders 2007-12-30 15:46

Application manager doesn't work -- locked out of root
 
Okay, looks like I blew it. I installed Kerez. One of the steps for using it includes the following:

cp /etc/sudoers /etc/sudoers~ && echo user ALL = NOPASSWD: ALL >> /etc/sudoers

Well, I became root and did it and now I can't use application manager to refresh, go to log or settings....nothing. I get this message "operation already in progress" when I try to refresh.

Also when I try to become root and I get this response.

>>> sudoers file: syntax error, line 57 <<< sudo: parse error in /etc/sudoers near line 57

Looks like I am locked out.

All installed programs work fine.

I am using OS2008 on my N800. I managed to set up dual boot myself. I am guessing I will have to recopy the flash operating system to MMC2. But before doing so, I thought I'd do a search to see if anyone else had this problem. No luck. So this is a plea for any advice. Looks like this newbie got in too deep using "become root". Any thoughts, suggestions????

Daaders

fanoush 2007-12-30 16:02

Re: Application manager doesn't work -- locked out of root
 
If you have dual boot you can boot the other system, gain root and mount broken system and fix /etc/sudoers, see
http://www.internettablettalk.com/fo...t=11501&page=2
In you case you may even restore it from /etc/sudoers~

Milhouse 2007-12-30 16:13

Re: Application manager doesn't work -- locked out of root
 
Why not boot from Flash, mount the MMC2 filesystem and then fix the broken sudo file?

I don't know how you cloned the OS, but if you used my cloning instructions you just need to run "./nupgrade.sh 1", cd to /opt/etc then fix the broken sudoers file.

daaders 2007-12-30 17:16

Re: Application manager doesn't work -- locked out of root
 
Thanks fanoush and Milhouse. So this is why I have dual boot. Fanoush, should I enter the exact same information from your Jan 2006 post (see below) or do I need to change something since I am booting from flash instead of MMC2?

mount -t jffs2 /dev/mtdblock4 /opt
cp -a /etc/sudoers /opt/etc/
umount /opt

fanoush 2007-12-30 17:51

Re: Application manager doesn't work -- locked out of root
 
well if broken system is on mmc2 the first mount command should be
Code:

mount -t ext2 /dev/mmcblk0p2 /opt
but you need to insert mbcache and ext2 kernel modules first, see beginning of http://maemo.org/community/wiki/howt...8dc271168d2489. Or do as Milhouse says, his 'nupgrade.sh 1' step probably does exactly that.

after you have /dev/mmcblk0p2 mounted to /opt you can run
Code:

cd /opt/etc
cp -a sudoers~ sudoers
cd
umount /opt

and reboot. This will work if the sudoers~ backup is sane. If not, you can take one from flash but it may not be up to date and may have something missing
Code:

cp -a /etc/sudoers /opt/etc/

daaders 2007-12-31 13:48

Re: Application manager doesn't work -- locked out of root
 
Fanoush,

I owe you a ton of gratitude. Your instructions solved the unable-to-access-root problem on my mmc2. Application manager is working again as well. Now I will get back to Kerez to try to figure out how to get it working so that I can shortcut startups that require typing in commands (e.g. openvpn). I learned a few things about root and dual boot through this process so I am highly appreciative for your advice. I love my N800 but the open source technology can be challenging. It can also be rewarding.

bobloadmire 2008-12-29 07:29

Re: Application manager doesn't work -- locked out of root
 
i have the same issure, but im not dual booting, so what should i do?


All times are GMT. The time now is 20:58.

vBulletin® Version 3.8.8