another scripting question

Hello
I am working on cleaning up permissions on Oracle mountpoints and datafiles in unix. I am looking for a script or a scripting idea to 1st.

  1. grep for owner oracle
  2. ensure its a directory owned for oracle
  3. chmod 750 on the oracle owned directory.
  4. grep for oracle files, etc datfiles in that subdirectory and change permission to 640 on all datafiles.

thanks
Jigar

Check out the man page on find - you can set an option for looking for a specific group or user. Also check out the -exec option to run the command against that file (or a script to run against the file which could be passed as parameter 1).

there is more suitable forum which can help you much better. i mean metalink. pls go to the unix & rdbms installation forum.

metalink.oracle.com

:slight_smile:

Another option to ORACLE tips is :

To access metalink.oracle.com you need have a code number.

Witt