Results 1 to 5 of 5

Thread: changing sudoers permissions - on a live system?

  1. #1
    Join Date
    Nov 2010
    Beans
    13
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Question changing sudoers permissions - on a live system?

    Okay, guys, i have this problem and i may need professional help; it appears smb4k made my /etc/sudoers file writable (according to log), hence, any sudo command will coerce this error:
    Code:
     
    ubuntu@ubuntu~$ sudo any 
    sudo: /etc/sudoers is mode 0640, should be 0440
    sudo: no valid sudoers sources found, quitting
    i wanted to boot into recovery console and chmod 0440 /etc/sudoers, but it's a live system - it doesn't have a recovery mode. (more here: http://ubuntuforums.org/showthread.php?t=1695680 )

    How would i mount the live system from another liveCD?

  2. #2
    Join Date
    Oct 2010
    Beans
    50

    Re: changing sudoers permissions - on a live system?

    A live CD ought to reset everything when you restart the computer. Is it a Live USB you're using?

  3. #3
    Join Date
    Dec 2010
    Beans
    549

    Re: changing sudoers permissions - on a live system?

    If you boot with a Live CD, it will automatically mount any partitions that it finds, including your Ubuntu installation on the hard drive. Then you can change anything you like.

  4. #4
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: changing sudoers permissions - on a live system?

    If it is a liveusb with persistent storage, then it is using the SysLinux boot loader. You should be able to hold down shift or press tab during boot to get it to prompt you for additional kernel arguments. Add the word "single" and that will get you to rescue mode.

  5. #5
    Join Date
    Nov 2010
    Beans
    13
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: changing sudoers permissions - on a live system?

    Thank You, appending 'single' worked!

    Then why did it say there's no "dedicated recovery mode"? Nevermind, i don't even remember how i got there....

    Back to finding out how to make some room.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •