Find the answer to your Linux question:
Results 1 to 4 of 4
basically I screwed up I thought in my stupid head that if I selected everything on the hard disk that I would have privileges to do everything but it turns ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    3

    Exclamation Root Privileges not working

    basically I screwed up I thought in my stupid head that if I selected everything on the hard disk that I would have privileges to do everything but it turns it that all it doe is throw this error:
    sudo: /etc/sudoers is mode 0666, should be 0440
    sudo: no valid sudoers sources found, quitting

    when I try to run something as root and anything run graphically just crashes also what is most annoying is the act that can't change it back. Please help as I can't install anything new or do anything with root.

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    First of all, never ever try to give yourself total priveleges. Even if this had worked, it would be a seriously bad idea. The whole point of the Linux permissions system is that you don't give yourself root access to anything unless you need to be root to do a particular job. Everything else you do as yourself. That way you miss out on 95% of opportunities to screw up your system. In Windows you're always root and that's why all that malware you pick up can do its dirty work.

    Your problem is that you are now trapped in a loop. You can't use sudo because your sudoers file is bad and you can't fix it without using sudo! On another distro, you could just log in as root but you can't do that in Ubuntu. Fortunately you can use the live Ubuntu on your installation disk to break in. You need to boot from it and then mount your normal root partition on /mnt. After that, you can go there and reset the sudoers file permissions. This should do it I think:
    Code:
    mount /dev/sda1 (or whatever your root partition is called) /mnt
    cd /mnt/etc
    chmod 0440 sudoers
    shutdown -r now
    remove the cd and let the system reboot from the hard drive.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    May 2010
    Posts
    3

    Thank you

    Thank you! I must of been having a "windows" moment (I only switched about a month ago)

  4. #4
    Just Joined!
    Join Date
    May 2010
    Posts
    3

    Wow I've screwed up

    oh dear It didn't work tried something else and now Ubuntu doesn't even load I think I'm gonna have to reinstall Ubuntu curse me for being stupid

Posting Permissions

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