Good afternoon, I hope that someone can make a suggestion or two as what my issues are and how to solve them, or suggest the correct group to post the questions to.
I have successfully installed Oracle Solaris 11.1 (x86/64-bit) installation on Oracle VirtualBox. Now, I would like to install Oracle 11gR2 in my Oracle Solaris 11.1 environment. At the moment, I am completing the pre-installation instructions. Having signed on as the root user, I created the oracle user and the oinstall group. Further on, the instructions call for the creation of two directories, /u01/app/oracle and /u02/oradata, which I created without error, both directories being owned by root. Next, the instructions call for changing the owner and group to the oracle user and the oinstall group, as follows:
# chown -R oracle:oinstall /u01/app/oracle
# chown -R oracle:oinstall /u02/oradata
My specific issue is that after performing the chown command, I do an ls -l
and see that the two directories appear to be still owned by root (the group is root as well). Even though I am performing the chown command as root, the chown command does not appear to change the owner and group of the two directories to oracle:oinstall
After a suggestion was made to me to execute an ls -ld (as root) on the root directory, I 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:
root@solaris://>ls -l
total 1042
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. I then executed an ls -l
from the root directory and the results showed root and root as the owner and group. Can anyone enlighten me on what the difference is between ls -l
and ls -ld
that would show the owner/group for ls -l
as root:root
and the owner/group for ls -ld
as oracle:oinstall
? Is there any way to tell whether root:root
is the owner:group of the two directories or is oracle:oinstall
the owner:group of the two directories?
I appreciate any suggestions that one can make, many thanks in advance for your assistance.