I screwed up sudoers and I haven't root access (remote server).

Discussion in 'Server Operation' started by nomikos, Feb 11, 2011.

  1. nomikos

    nomikos New Member

    This is the hard way to learn when you MUST use visudo, specially in a remote server. That's right. I did something stupid like:

    and now have:

    So what if I have locked the root account (passwd -l root) and now I can't do su to fix sudoers file???

    As i said this is in a remote server (VPS) so I can not use recovering special tools via CD or similar.

    thanks.-
     
  2. beyerservice

    beyerservice Member HowtoForge Supporter

    no recovery mode or something like that?

    the thing is that it supposed to be nothing that you can do if you do not have recovery terminal.
     
  3. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

  4. beyerservice

    beyerservice Member HowtoForge Supporter

    ???not really helping.
     
  5. nomikos

    nomikos New Member

  6. nomikos

    nomikos New Member

    Update

    What a odyssey! I was thinking in very rare things to solve this.
    ===
    Solution:
    I have webmin installed. So as the root account WAS :) locked, I have another webmin user with access to all modules.
    Webmin > Users and Groups > root account > password: No password required
    ===
    Can you believe it?
     
  7. beyerservice

    beyerservice Member HowtoForge Supporter

    no. thats too much luck for you :-D
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Why? He could boot from a live system, mount his hard drive and then try to fix /etc/sudoers.
     
: sudoers

Share This Page