Results 1 to 3 of 3

Thread: Restore the sudoers, "sudo chmod 777 -R /.*" fatal command

  1. #1
    Join Date
    Oct 2011

    Angry Restore the sudoers, "sudo chmod 777 -R /.*" fatal command


    I know, I'm crazy, I wrote the command

    sudo chmod 777 -R /.*

    in my ubuntu server, its a fatal command

    Now my etc/sudoers file and etc/sudoers.d folder are blocking any operation on my server, even I'm not able to connect by FTP or SSH to the server. I was able to change the permissions of the sudoers to the 0440 but even now it is still not fixed. Now Im not able to logging remotely to the server, but Im going to have access to the physic machine next days, but any way I don't know what to try..
    I will be really thankful if someone can help me, or give some ideas what to do, otherwise I will have to format, and even Im not able to copy the files to backup the information needed

    best regards!

  2. #2
    Join Date
    May 2010
    Xubuntu 14.04 Trusty Tahr

    Re: Restore the sudoers, "sudo chmod 777 -R /.*" fatal command


    Personally, i would backup from a LiveCD and reinstall as it's a potential security risk on a server.

    Anyway for ssh...

    matthew@matthew-laptop:~/.ssh$ ls -l
    total 12
    -rw-------. 1 matthew matthew 1675 2011-04-19 16:54 id_rsa
    -rw-r--r--. 1 matthew matthew  404 2011-04-19 16:54
    -rw-r--r--. 1 matthew matthew 3306 2011-09-28 11:52 known_hosts
    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  3. #3
    Join Date
    Oct 2011

    Re: Restore the sudoers, "sudo chmod 777 -R /.*" fatal command

    Thanks Matthew,

    It's good hear that from live CD I can have the chance to backup my data

    I didnt get the ssh sugestion,
    In my local machine I only can find the
    file, the others are missing. Its supost to do something to this file, like drop the generated keys??

    Really, I have a very important missing time factor, and right now this is a server just for develop and show the product, and the security is not yet "important" in this stage, if there is another fast way to go, in this stage will be better.


    Best regards.

Tags for this Thread


Posting Permissions

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