This content has been marked as final. Show 3 replies
Hi Bob, thanks for the reply, much appreciated. When I logged into my Oracle Solaris 11.1 and su - root, I executed an ls -ld from the root directory and got the following results:
root@solaris://>ls -ld /u01/app/oracle /u02/oradata
drwxrwxr-x 2 oracle oinstall 2 Feb 21 05:36 /u01/app/oracle
drwxrwxr-x 2 oracle oinstall 2 Feb 21 05:36 /u02/oradata
I was surprised to say the least, as when I executed an ls -l from the root directory as root, I got the following results:
lrwxrwxrwx 1 root root 9 Oct 4 23:41 bin -> ./usr/bin
drwxr-xr-x 5 root sys 8 Oct 4 23:41 boot
drwxr-xr-x 2 root root 5 Oct 5 00:33 cdrom
drwxr-xr-x 254 root sys 257 Feb 21 12:39 dev
drwxr-xr-x 3 root root 3 Feb 21 05:36 u01
drwxr-xr-x 3 root root 3 Feb 21 05:36 u02
I exited from the root role and back to my user account, and then executed an ls -ld from the root directory and got the same results as above, showing the oracle and oinstall as the owner and group, respectively. When I executed an ls -l from the root directory, the results show root and root as the owner and group. I will have to read up on the differences between ls -l and ls -ld to determine who in fact is the owner and group, is it oracle oinstall or root root. Could you possibly enlighten me on what the differences are between ls -l and ls -ld so I know where to concentrate my reading.
Thanks very much again for your assistance.
Hi Bob, the issue surrounding my question was a lack of understanding of exactly what I was requesting. After executing an ls -ld and further reading about the ls and chown commands, the answer revealed itself.
When I was executing the chown -R oracle:oinstall of /u01/app/oracle, I was requesting a change of owner and group on the "oracle" directory, not on the "u01", "app" and "oracle" directories. Similarly, the chown -R oracle:oinstall /u02/oradata was a request to change the owner and group for the "oradata" directory, not on the "u02" directory. What I really was trying to achieve was to change the owner and group for the u01, app, and oracle directories to oracle:oinstall, and the change the u02 and oradata directories to oracle:oinstall.
To achieve what I initially set out to do, I executed a chown -R oracle:oinstall u01, and chown -R oracle:oinstall u02. After executing an ls -l from the root directory, I see that the owner & group for the u01 and u02 directories had been changed to oracle:oinstall.
Thanks again for your reply, your idea of executing the ls -ld and seeing the results of that command sparked the beginning of finding the solution.