Results 1 to 7 of 7

Thread: Major Messup

  1. #1

    Major Messup

    another admin chmod'ed every dir to 666 now its all messed
    "chmod -R 666 /"


    What to do?

  2. #2
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,601
    Ouch. What os is it?

    Rus
    Russ Foster - Industry Curmudgeon

  3. #3
    redhat 9

  4. #4
    he tried to chmod the folder he was in you see

  5. #5
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,601
    OK The following is untest and is just a bit of a guess by me

    Use the following shell script

    rpm -qa | while read line ; do rpm --setperms $line ; done

    It should get you 90% of the way back
    Rus
    Russ Foster - Industry Curmudgeon

  6. #6
    Join Date
    Dec 2003
    Posts
    141
    Can you restore from backup of the previous night?

  7. #7
    Originally posted by jvds
    OK The following is untest and is just a bit of a guess by me

    Use the following shell script

    rpm -qa | while read line ; do rpm --setperms $line ; done

    It should get you 90% of the way back
    Rus
    This is a really good suggestion.

    Peter.
    Open Solution, Inc
    http://opensolution-us.com

Posting Permissions

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