Results 1 to 5 of 5

Thread: wrong command = security issue

  1. #1
    Join Date
    Jul 2006
    Location
    Liguria, Italy
    Beans
    117
    Distro
    Ubuntu 10.04 Lucid Lynx

    wrong command = security issue

    Hi!
    unfortunately, while i was trying to change permissions to every file in a subdirectory, i filled the following WRONG command:

    Code:
    sudo chown -R username /
    after 1/2 second I realized it was a mistake and pressed CTRL+C but it was late.

    Every time i use a sudo command now it says:

    Code:
    sudo: /var/run/sudo owned by uid 1000, should be uid 0
    So I guess i changed the owner of an undefined amount of files/directories.

    How do I revert this thing to give item the right permission? Is it possible?
    Thank you very much.

    sblanzio

  2. #2
    Join Date
    Sep 2008
    Beans
    37

    Re: wrong command = security issue

    use

    su

    and change it back as root

  3. #3
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,701

    Re: wrong command = security issue

    Unfortunately not all files should be owned by root, so chown -R root / won't fix it. I think you really need to use recovery mode to back up your user data and then reinstall. You can fix the ownership of the users files either before making teh backup or after restoring it onto the new system. Sorry, but it's the only way to reliably fix things.

  4. #4
    Join Date
    Jul 2006
    Location
    Liguria, Italy
    Beans
    117
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: wrong command = security issue

    Quote Originally Posted by The Cog View Post
    Sorry, but it's the only way to reliably fix things.
    uhm, I guessed that.

    Thank you very much!
    sblanzio

  5. #5
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: wrong command = security issue

    Quote Originally Posted by the cog View Post
    unfortunately not all files should be owned by root, so chown -r root / won't fix it. I think you really need to use recovery mode to back up your user data and then reinstall. You can fix the ownership of the users files either before making teh backup or after restoring it onto the new system. Sorry, but it's the only way to reliably fix things.
    +1
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

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
  •