Results 1 to 5 of 5

Thread: I think I've broken sudo!!!

  1. #1
    Join Date
    Mar 2010
    Beans
    20

    Unhappy I think I've broken sudo!!!

    in a rage of anger against vi i decided to open my firewall config file in gedit, made some changes and was then confrunted by the fact that it was read only. i decided to change the permissions for the whole of the /etc folder with:
    Code:
    sudo chmod 777 /etc/*
    this also changed /etc/sudoers so that now whenever I try to use sudo i get the error:
    sudo: /etc/sudoers is 0777, should be 0440
    segmentation fault
    i cannot change it back to 440 because i need sudo to do that. PLEASE HELP

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I think I've broken sudo!!!

    Boot into a recovery shell from the GRUB menu and change the permissions to what they were from there.

    Just wanted to note: If you are editing anything that is not in yer home directory, you probably will only have read access to it, You need to use sudo or gksu to have full rights to whatever file you want to edit.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Mar 2010
    Beans
    20

    Re: I think I've broken sudo!!!

    Quote Originally Posted by CharlesA View Post
    Boot into a recovery shell from GRUB
    How do I do that, and what's gksu?

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I think I've broken sudo!!!

    Quote Originally Posted by CyberJacob View Post
    How do I do that, and what's gksu?
    gksu = graphical sudo. It's used for running graphical apps instead of sudo.

    Try holding down shift while the machine is booting.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #5
    Join Date
    Mar 2010
    Beans
    20

    Re: I think I've broken sudo!!!

    done it, thanks. OHNO
    this thing just leads from one thing to another, ah well, time to start another thread.

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
  •