Results 1 to 6 of 6

Thread: I'm getting a warning in terminal everytime i do a commaned now.

  1. #1
    Join Date
    Feb 2008
    Beans
    821

    Question I'm getting a warning in terminal everytime i do a commaned now.

    was this from a new update? everytime i use the terminal i get this warning right after i enter commands
    Code:
    WARN: /etc is world writable!
    WARN: /etc is group writable!
    WARN: /lib is world writable!
    WARN: /lib is group writable!
    WARN: /usr is world writable!
    WARN: /usr is group writable!

  2. #2
    Join Date
    Dec 2005
    Location
    The Netherlands
    Beans
    682
    Distro
    Ubuntu Development Release

    Re: I'm getting a warning in terminal everytime i do a commaned now.

    I hardly believe an update will change the right to /etc.



    Did you use chmod?

    Check with
    ls -l /
    what the rights are for these directories en change them from rwxrwxrwx to rwxr-xr-x
    Hello, all my posts come without warranty

  3. #3
    Join Date
    Feb 2008
    Beans
    821

    Re: I'm getting a warning in terminal everytime i do a commaned now.

    Quote Originally Posted by Rinzwind View Post
    I hardly believe an update will change the right to /etc.



    Did you use chmod?

    Check with
    ls -l /
    what the rights are for these directories en change them from rwxrwxrwx to rwxr-xr-x
    k thanks

  4. #4
    Join Date
    Feb 2008
    Beans
    821

    Re: I'm getting a warning in terminal everytime i do a commaned now.

    Quote Originally Posted by Rinzwind View Post
    I hardly believe an update will change the right to /etc.



    Did you use chmod?

    Check with
    ls -l /
    what the rights are for these directories en change them from rwxrwxrwx to rwxr-xr-x
    ok i changed it but i cant use sudo anymore now?
    Code:
    sudo: /etc/sudoers is mode 0755, should be 0440
    sudo: no valid sudoers sources found, quitting

  5. #5
    Join Date
    Nov 2008
    Beans
    Hidden!

    Re: I'm getting a warning in terminal everytime i do a commaned now.

    Quote Originally Posted by KEE View Post
    ok i changed it but i cant use sudo anymore now?
    Code:
    sudo: /etc/sudoers is mode 0755, should be 0440
    sudo: no valid sudoers sources found, quitting
    Reboot from a LiveCD, and mount the partition in question.

    Code:
    sudo mkdir /mnt/drive
    sudo mount -t ext4 /dev/sda1 /mnt/drive
    Replace /dev/sda1 and ext4 with the appropriate partition and filesystem type (you can find these out by opening the Partition Editor). Then chmod the etc/sudoers inside the mount point.

    Code:
    sudo chmod 440 /mnt/drive/etc/sudoers
    Reboot and it should work.

  6. #6
    Join Date
    Nov 2009
    Beans
    919
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I'm getting a warning in terminal everytime i do a commaned now.

    If you didn't make the change in permissions on all those directories in the first place, then it would be a good idea to reinstall the OS completely and restore from backups. This would not have been caused by any updates from the repositories.

    Even if you did make the initial changes it might be faster to reinstall than to go back through and identify everything that has been messed up and correct it.

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
  •