728x90
Problem(Abstract)
This script compares the permission and ownerships of files in a file distribution list with the binaries in the installed Informix product. It generates a list of problems and also a script to correct the permissions and ownership.
Cause
Incorrect permissions or ownership of IBM Informix files might result in product malfunction.
Resolving the problem
This Korn-Shell script will check the permission and ownership of the files that came with your Informix product. It will check the Informix file distribution list against files on the disk to verify that all have the correct ownerships and permissions.
The script will create two output files in the current directory.
- The file_check.sh.out is a listing of all files that have the wrong permission, are not owned by the correct owner or group, or are missing.
- The file file_check.sh.update is a script file with UNIX commands to fix any permission or owner problems listed in file_check.sh. You can run this script as user informix or root to correct the problems.
To use the script take these steps:
- 1. Copy the file file_check.sh.txt to a work directory. Change the name to file_check.sh.
2. Run the script using this syntax:
- file_check.sh -f filename [-d directory]
- filename
- The file distribution list (required)
- directory
- The path to the directory in which your Informix products are installed. If this is not given then the value of $INFORMIXDIR will be used.
Examples:
The file distribution list for this product... | ...has this name |
IBM Informix online Dynamic Server (OnLine) | $INFORMIXDIR/etc/onlinefiles |
IBM Informix Extended Parallel Server (XPS) | $INFORMIXDIR/etc/onlinefiles |
IBM Informix Dynamic Server (IDS) version 7 | $INFORMIXDIR/etc/IDSfiles |
IBM Informix Dynamic Server (IDS) version 9, 10 & 11 | $INFORMIXDIR/etc/IIFfiles |
IBM Informix Client SDK (CSDK) | $INFORMIXDIR/etc/clientsdkfiles |
About missing files
When file_check.sh reports a missing file it means that the file is listed in the file distribution list but does not exist. This is not always a problem.
Sometimes a file will be removed from a release and due to an oversight the file name will not be removed from the file distribution list. When this occurs it will not cause problems.
Consider the notice of a missing file to be a notification of a potential problem.
Sample Output
These are the output files from a sample run of file_check.sh. This run found 4 "missing" files and one file with the wrong group and permissions.
- Contents of file_check.sh.out
- Missing File(s)
/usr/informix/msg/en_us/0333/nforms.iem
/usr/informix/msg/en_us/0333/nformbld.iem
/usr/informix/etc/sqlhosts.demo
/usr/informix/etc/Termcap
Wrong Group (Run ./file_check.sh.update for fix)
/usr/informix/bin/onstat
Wrong Owner (Run ./file_check.sh.update for fix)
No File Found
Wrong Permission (Run ./file_check.sh.update for fix)
/usr/informix/bin/onstat
- chgrp informix /usr/informix/bin/onstat
chmod 2755 /usr/informix/bin/onstat
Segment | Product | Component | Platform | Version | Edition |
---|---|---|---|---|---|
Information Management | Informix Extended Parallel Server (XPS) | UNIX | All Versions | All Editions | |
Information Management | Informix onLine | Not Applicable | UNIX | All Versions | |
Information Management | Informix SE | Not Applicable | UNIX | Version Independent | |
Information Management | Informix Tools | Not Applicable | UNIX | All Versions | |
Information Management | Informix C-ISAM | Not Applicable | UNIX | Version Independent |
728x90
'Informix > informix reference' 카테고리의 다른 글
Reporting Total Disk Space Usage for All Databases. (0) | 2011.11.20 |
---|---|
Using the Informix System Catalogs (0) | 2011.11.20 |
テーブルの現在および追加可能なエクステント数の取得について (0) | 2011.11.12 |
An sql query to determine table space usage within a dbspace (0) | 2011.11.12 |
Checking what tables are created on any specific dbspace (0) | 2011.11.12 |