Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    howto fix corrupted sudoers file?

    Reply
    Page 1 of 2 | 1   2   | Next
    morlix | # 1 | 2010-02-12, 15:57 | Report

    Hello Community,

    i recently got my N900 and iīm happy with it.

    Today i upgraded severall apps using Extras, Extras-Testing and Extras-Devel and no is my sudoers file broken.

    It says:

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

    How can i fix this?

    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.

    The last apps i have upgraded (i hope i remember the right ones):
    wizard-mounter
    fmboost
    fapn

    Is there any other solution beside reflashing the device?
    If reflashing is the only solution, do i loose my contacts if i reflash?

    I do not have a microSD cad yet to make a backup.

    Kind regards,

    morlix

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Bratag | # 2 | 2010-02-12, 16:03 | Report

    Originally Posted by morlix View Post
    Hello Community,

    i recently got my N900 and iīm happy with it.

    Today i upgraded severall apps using Extras, Extras-Testing and Extras-Devel and no is my sudoers file broken.

    It says:

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

    How can i fix this?

    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.

    The last apps i have upgraded (i hope i remember the right ones):
    wizard-mounter
    fmboost
    fapn

    Is there any other solution beside reflashing the device?
    If reflashing is the only solution, do i loose my contacts if i reflash?

    I do not have a microSD cad yet to make a backup.

    Kind regards,

    morlix
    Well my first thought would be to uninstall the apps with the --purge flag. this hopefully will roll back the changes.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 3 | 2010-02-12, 16:06 | Report

    Originally Posted by morlix View Post
    Is there any other solution beside reflashing the device?
    You could probably edit it in R&D mode

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fred123 | # 4 | 2010-02-12, 16:06 | Report

    I have just had this problem, had wizard-mounter installed last night then removed it.

    I ran update-sudoers as root

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to fred123 For This Useful Post:
    Corwin

     
    Rob1n | # 5 | 2010-02-12, 16:07 | Report

    Originally Posted by Bratag View Post
    Well my first thought would be to uninstall the apps with the --purge flag. this hopefully will roll back the changes.
    Except that if you can't get root, you can't uninstall them. You probably won't even be able to do so via App manager.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    morlix | # 6 | 2010-02-12, 16:10 | Report

    Thanks for the quick replies.

    I canīt get root and the app manager says that no catalogue is installed.

    @Rob1n: to get into R&D mode i have to flash device and i want to avoid that if possible

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 7 | 2010-02-12, 16:15 | Report

    Originally Posted by morlix View Post
    Thanks for the quick replies.

    I canīt get root and the app manager says that no catalogue is installed.

    @Rob1n: to get into R&D mode i have to flash device and i want to avoid that if possible
    You shouldn't need to reflash the device - you need to run the flasher app, but I don't think you need to actually provide it with an image to flash. I've not tried it myself, but that's certainly the impression I've got from others.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fred123 | # 8 | 2010-02-12, 16:17 | Report

    I just typed root not "sudo gainroot" and it gave me root in terminal.

    Then ran update-sudoers.

    This was after a reboot.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to fred123 For This Useful Post:
    Corwin, lorez1

     
    Matan | # 9 | 2010-02-12, 16:20 | Report

    You can enter R&D mode without flashing, but it will not help, as gainroot depends on sudo to gain root access. If you did not prepare in advance (sshd, another boot partition, some suid root binary that can run a shell), you are out of luck.

    There are many programs that run as root on the system. If you can find a vulnerability in them that enables you to run arbitrary code, you might be able to fix the problem without a reflash.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    morlix | # 10 | 2010-02-12, 16:22 | Report

    @fred123

    i tried this too, but i get errors from sudo like above.

    @Rob1n

    Thx i will try this!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout