Find the answer to your Linux question:
Results 1 to 5 of 5
Hi have LInux Redhat 2.1 enterprise installed on BLADE server. Today I comitted a mistake of changing permission . chown -R oracle:dba .. I was in partition /usr02 where my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    3

    Trouble : I have mistakenly changed the user:owner permission of / how to recover


    Hi have LInux Redhat 2.1 enterprise installed on BLADE server.

    Today I comitted a mistake of changing permission .

    chown -R oracle:dba ..

    I was in partition /usr02 where my software was to be installed
    instead of chown -R oracle:dba .
    I changed the whole system ownership to oracle:dba
    anyway how to restore back the file ownerships and permission.

    This server has just been finished installing OS .
    if there is anyway to recover from installtion CD .
    any pointers will be of immense help.

    Thanks.

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Why don't you as root change the ownership back with
    Code:
    chown bob /usr02
    wich will give ownership to bob, so replace bob with whoever was the owner before you make your mistake...
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Jun 2005
    Posts
    3
    The problem is how will I get information of each and every file / dirctorys specific owner:group info.
    for eg in the /dev it has recursively replaced all the file dir owner to oraclea:dba .
    and there are so many users eg. sys etc how to know/get list of the OS directories owners ..

  4. #4
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    You could do a forced reinstall of packages. It is probably faster then searching for the proper ownership of files and changing them. That will still leave you with files that did not come with the distro you use. Before you do make a backup of all your config files .
    I\'m so tired .....
    #200472

  5. #5
    Just Joined!
    Join Date
    Jun 2005
    Location
    iowa
    Posts
    64

    my two bits worth

    regain system control ...open a dir called today...dump everyones files into it open (no password etc) assign or let them open new user accounts and copy there own files from today dir. to there home NOTE :back up today just in case someone has a problem or is gone!

    couple days kill today dir (your all ok!!!)

    if server is on the net set no use flag to public no... read,write,etc


    steve

Posting Permissions

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