| Prev |   1   2 |
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   howto fix corrupted sudoers file? (https://talk.maemo.org/showthread.php?t=44265)

born2wonder 2010-02-12 16:30

Re: howto fix corrupted sudoers file?
 
Quote:

Originally Posted by morlix (Post 523195)
I have installed rootsh, but sudo gainroot doesn´t work without a valid sudoers file and rootsh /bin/sh says that it is deprecated and is should use root or sudo gainroot instead.

Have you tried "sudo nano /etc/sudoers" as user instead of "sudo gainroot" ?
I doubt it will work but worth a shot. Otherwise, Rob1n's suggestion is your best bet.

Quote:

I do not have a microSD cad yet to make a backup.
You do not need a microSD card since the backup can be stored on the 32gb flash memory.

Shaq

morlix 2010-02-12 16:46

Re: howto fix corrupted sudoers file?
 
@born2wonder

No "sudo nano /etc/sudoers" doesn´t work. I tried with vim, but this shouldn´t make a difference.

Quote:

You do not need a microSD card since the backup can be stored on the 32gb flash memory.

Shaq
That´s right. I had my N900 connected via USB, because of that the backup apps said no microSD card for backup available.
After removing the usb cable the backup is working fine.

I think i´m going to reflash the device, because any other way will take so much time to fix it.

thanks anyone!

asys3 2010-02-12 18:09

Re: howto fix corrupted sudoers file?
 
I have the exact same problem here - but I am quite sure I only installed catorize.
Afterwards the sudoers file was corrupted.
What a pity that I haven't installed sshd server before :-(

Please post here if you have success with reflashing.
Than I'll do the same.

asys3

morlix 2010-02-12 18:30

Re: howto fix corrupted sudoers file?
 
Yes after reflashing (warm) it works like a charm.

You should make a backup of everything before you flash your n900 because afterwards you can restore the backup and nearly everything will be like before.

Corwin 2010-02-13 16:47

Re: howto fix corrupted sudoers file?
 
Same thing here, solved it by sshing to the N900 and also running update-sudoers. That fixed it for me.
I also upgraded wizard-mounter, will report it there:
http://talk.maemo.org/showthread.php?t=44188

Best regards,
Corwin


| Prev |   1   2 |
All times are GMT. The time now is 19:29.

vBulletin® Version 3.8.8