1825119 Members
4020 Online
109679 Solutions
New Discussion юеВ

mount /opt/oracle

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

mount /opt/oracle

Hello all,

I feel like a real noob here ....

I want to mount /opt/oracle.

I made the directory with chmod 777 and chown oracle:dba however when I mount /opt/oracle the owner is root:root.

how can I mount as oracle:dba .

cheers
hello
6 REPLIES 6
DCE
Honored Contributor

Re: mount /opt/oracle



Try doingt he chown after you mount the directory. You are overlaying the original when you mount. If you unmount and look, the oracle:dba ownership should still be there
lawrenzo_1
Super Advisor

Re: mount /opt/oracle

yes I have done that, but when I remount the filesystem it is back to root:root

:(
hello
DCE
Honored Contributor
Solution

Re: mount /opt/oracle


If you do the following steps
1. mount the directory
2. chown oracle:dba /opt/oracle
3. ll /opt
the /opt/oracle directory is owned by root:root?

Do the oracle user and the dba group exist?

Also permissions of 777 is not a good idea. you should eliminate the world write flag (775). Any audit of the system will show the 777 as a major security risk.
Ninad_1
Honored Contributor

Re: mount /opt/oracle

I dont think its problem of existance of oracle user - because it would have given the error of unknown user id if the user didnt exist.
It looks like the only real solution is what DCE has already suggested.
Are you sure you are checking the permissions after the filesystem is mounted ?
bdf /opt/oracle - to check if the filesystem is mounted.
If not - mount the filesystem
chown -R oracle:dba /opt/oracle [ To recursively own each file and sub dir under /opt/oracle by user oracle ]
ls -ld /opt/oracle [ To confirm ]

Also I agree that the permissions should not be set to 777 as far as possible.

Just a reality check - are you checking the permissions after unmounting /opt/oracle and hence finding them to be root:root again ?

Regards,
Ninad
Mount /opt/oracle
lawrenzo_1
Super Advisor

Re: mount /opt/oracle

ok sorted, dont know what happened the first time.

I have done:

remove oracle user

recreated because the command id oracle displayed

uid=440(oracle) gid=106() groups=201(dba)

now displays

uid=440(oracle) gid=200(oinstall) groups=201(dba)

chown oracle:dba /opt/oracle
mount -a

owner is now oracle:dba

hello
lawrenzo_1
Super Advisor

Re: mount /opt/oracle

ty chaps
hello