Find the answer to your Linux question:
Results 1 to 2 of 2
Dear Friends: I am in process of installing Oracle software over RedHat Linux Enterprise 2.1 server. OS was installed 2 weeks back and is not backed up. During the process ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    3

    Urgent Help needed: Want to restore the ownership of root partition


    Dear Friends:

    I am in process of installing Oracle software over RedHat Linux Enterprise 2.1 server.
    OS was installed 2 weeks back and is not backed up.

    During the process of changing the ownership of the copied media (CDS) from root:others to oracle:dba , mistakenly typed
    cd /usr01
    chown -R oracle:dba ..
    This resulted in changing the file ownership to oracle:dba of all the directories and files under root.

    later I changed back to root:root executing
    chown -R root:root

    Now I require help in restoring back the ownership since some services are not getting started.

    can anybody sujest me some way by which I can restore back.

    Just incase anybody has the same Linux server version . I guess following command below will provide me the list of file ownership.
    cd /
    ls -lR initrd misc boot var usr bin opt sbin lib etc dev root|grep -v
    total|grep -v ":$"|awk -F' ' '{ if ( $3 != 'root' || $4 != 'root' )
    print ; }' > File_perm.txt

    Thanking in anticipation

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    chown -R oracle:dba ..
    This resulted in changing the file ownership to oracle:dba of all the directories and files under root.
    I am not sure why, since you were not in the / directory.

    As for restoring all files on your system to their original owners and groups, I do not know of a way. Hopefully you have some backups you can refer to.

Posting Permissions

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