如何恢复错误授权后的grid目录权限

Oracle MOS 有提及:Tips for checking file permissions on GRID environment(ID 1931142.1)

该文档中描述到,$GRID_HOME/crs/utl下面的几个文件中记录了整个GRID_HOME下面的文件和目录的相关权限。

根据实际情况查看是否是这样的:

[root@rac2 bin]# cd  /home/grid/app/11.2/grid/crs/utl
[root@rac2 utl]# ls -ltr
total 324
-rw-r–r– 1 root root  1128 Aug 11 09:48 usrvip
-rw-r–r– 1 root root  8437 Aug 11 09:48 srvctl
……
-rw-r–r– 1 root root 12102 Aug 11 09:48 crsconfig_files
-rw-r–r– 1 root root 13468 Aug 11 09:48 crsconfig_fileperms
-rw-r–r– 1 root root  8666 Aug 11 09:48 crsconfig_dirs
-rw-r–r– 1 root root   699 Aug 11 09:48 crfsetenv
-rw-r–r– 1 root root  1280 Aug 11 09:48 cmdllroot.sh
-rw-r–r– 1 root root  3680 Aug 11 09:48 cluutil
-rw-r–r– 1 root root  1648 Aug 11 09:48 clsrwrap
-rw-r–r– 1 root root   540 Aug 11 09:48 appvipcfg
[root@rac2 utl]# more crsconfig_dirs
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
# The values in each line use the following format:
#
# OSLIST DIRNAME OWNER GROUP CLOSED-PERMS OPEN-PERMS
#
# Note:
# 1) OSLIST is a comma-separated list of platforms on which the directory
#    needs to be created.  ‘all’ indicates that the directory needs to be
#    created on every platform.  OSLIST MUST NOT contain whitespace.
# 2) Permissions need to be specified AS OCTAL NUMBERS.  If permissions are
#    not specified, default (umask) values will be used.
#
# TBD: OPEN-PERMS need to be added for each dir

all /home/grid/app/11.2/grid/cdata oracle oinstall 0775
all /home/grid/app/11.2/grid/cdata/rac-scan oracle oinstall 0775
all /home/grid/app/11.2/grid/cfgtoollogs oracle oinstall 0775
all /home/grid/app/11.2/grid/cfgtoollogs/crsconfig oracle oinstall 0775
all /home/grid/app/11.2/grid/log oracle oinstall 0775
all /home/grid/app/11.2/grid/log/rac2 root oinstall 01755
all /home/grid/app/11.2/grid/log/rac2/crsd root oinstall 0750
all /home/grid/app/11.2/grid/log/rac2/ctssd root oinstall 0750
all /home/grid/app/11.2/grid/log/rac2/evmd oracle oinstall 0750
all /home/grid/app/11.2/grid/log/rac2/cssd oracle oinstall 0750
all /home/grid/app/11.2/grid/log/rac2/mdnsd oracle oinstall 0750
all /home/grid/app/11.2/grid/log/rac2/gpnpd oracle oinstall 0750
all /home/grid/app/11.2/grid/log/rac2/gnsd root oinstall 0750
all /home/grid/app/11.2/grid/log/rac2/srvm oracle oinstall 0750
………

确实是这样,里面记录了该文件记录了所有相关目录的权限。至于文件的权限,记录在另外2个文件之中.

但实际情况下只有 orabase_cleanup.lst一个文件,后续研究下。

你可能感兴趣的:(Oracle,Basic,Knowledge)