LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2017, 01:26 PM   #1
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Rep: Reputation: 0
two user need write privilege on specific Directory -


Dear Linux Experts,

I am Installing Oracle RAC Database in Vmware Workstation.

>> REQUIRED GROUPS

PHP Code:
# groupadd -g 501 oinstall
# groupadd -g 502 dba
# groupadd -g 503 asmadmin
# groupadd -g 504 asmdba
# groupadd -g 505 asmoper 
>> REQUIRED USERS TO INSTALL RAC DATANASE ON OEL

PHP Code:
# useradd -u 550 -g oinstall -G asmadmin,asmdba,asmoper grid
# useradd -u 551 -g oinstall -G dba,asmdba oracle 
PHP Code:
[root@RAC1 ~]# id grid
uid=550(gridgid=501(oinstallgroups=501(oinstall),503(asmadmin),504(asmdba),505(asmoper
PHP Code:
[root@RAC1 ~]# id oracle
uid=551(oraclegid=501(oinstallgroups=501(oinstall),502(dba),504(asmdba
>> GRID_BASE

PHP Code:
[root@RAC1 u01]# mkdir -p /u01/app/grid
[root@RAC1 u01]# chown -R grid:oinstall /u01/app/grid/
[root@RAC1 u01]# chmod -R 775 /u01/app/grid/ 
>>GRID_HOME

PHP Code:
[root@RAC1 u01]# mkdir -p /u01/product/11.2.0/grid_home
[root@RAC1 u01]# chown -R grid:oinstall /u01/product/11.2.0/grid_home/
[root@RAC1 u01]# chmod -R 775 /u01/product/11.2.0/grid_home/ 
>> ORACLE_BASE

PHP Code:
[root@RAC1 u01mkdir -/u01/app/oracle
[root@RAC1 u01]# chown -R oracle:oinstall /u01/app/oracle/
[root@RAC1 u01]# chmod -R 775 /u01/app/oracle/ 
>> ORACLE_HOME

PHP Code:
[root@RAC1 u01]# mkdir -p /u01/app/oracle/product/11.2.0/db_home
[root@RAC1 u01]# chown -R oracle:oinstall /u01/app/oracle/product/11.2.0/db_home
[root@RAC1 u01]# chmod -R 775 /u01/app/oracle/product/11.2.0/db_home/ 
>> ORACLE INVENTORY

PHP Code:
[root@RAC1 u01]# mkdir -p /u01/app/oraInventory
[root@RAC1 u01]# chown -R oracle:oinstall /u01/app/oraInventory/
[root@RAC1 u01]# chmod -R 775 /u01/app/oraInventory/ 
PHP Code:
[root@RAC1 ~]# ls -lh /u01/app
total 12K
drwxrwxr
-x 2 grid   oinstall 4.0K Nov 26 04:51 grid
drwxrwxr
-x 3 oracle oinstall 4.0K Nov 26 04:54 oracle
drwxrwxr
-x 2 oracle oinstall 4.0K Nov 26 04:56 oraInventory 

Installing RAC with role separation, i.e
using grid user for GI Software and
oracle user for DB Software
both of them must have permission to write on oraInventory Directory.

I need 'oracle' user and 'grid' must have write privilege on oraInventory directory.

Last edited by Joy Stick; 11-25-2017 at 01:27 PM.
 
Old 11-25-2017, 01:46 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,437

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
It appears that both 'oracle' and 'grid' users do have write privileges on the oraInventory directory because that directory is owned by the oinstall group id, both users are members of that group, and the group write bit is set for the directory.
I'm not sure I see a question here.
 
2 members found this post helpful.
Old 11-25-2017, 07:45 PM   #3
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi,

But Oracle's ./runInstller always gives problem,
It is not accepting and throwing error.
OUI-10182: The effective user ID does not match the owner of the file
 
Old 11-25-2017, 08:43 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,437

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Quote:
Originally Posted by Joy Stick View Post
Hi,

But Oracle's ./runInstller always gives problem,
It is not accepting and throwing error.
OUI-10182: The effective user ID does not match the owner of the file
Aha! What does the Oracle documentation say to do when you get that error?
Doesn't the install set up everything as it needs to be?
From where did you get the users, groups, directories, ownership and permissions?
Have you done a web search? Try searching for "OUI-10182: The effective user ID does not match the owner of the file"
 
1 members found this post helpful.
Old 11-26-2017, 07:57 AM   #5
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi,

I am using 11.2.0.1.0 DB Software and GRID Software.
Might be it has some bugs in lower versions.

Oracle Experts are suggesting, do not create oraInventory directory manually
Let Installer handle it ...

I have fixed that issue

>> Changes i made to resolve that error

[root@rac1 ~]# rm -rf /u01/app/oraInventory
PHP Code:
[root@rac1 ~]# chown -R grid:oinstall /u01
[root@rac1 ~]# chown oracle:oinstall /u01/app/oracle
[root@rac1 ~]# chmod -R 775 /u01 

Last edited by Joy Stick; 11-26-2017 at 07:58 AM.
 
Old 11-26-2017, 08:17 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262
... also observing that it was Oracle that complained here, not Linux ...
 
Old 11-26-2017, 02:24 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,437

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Quote:
Originally Posted by sundialsvcs View Post
... also observing that it was Oracle that complained here, not Linux ...
Excellent point! Wonder why the OP doesn't seek help on an Oracle board. Of those posts I've looked at and done cursory searches, the answers appear to be on Oracle oriented boards (to which I've pointed him a couple of times)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run a specific script with root privilege as any user(possibly with ssh) z940303 Programming 5 09-05-2007 08:20 PM
Granting limited user a specific restricted cmd privilege itnaa Linux - Security 4 08-26-2007 03:18 PM
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 12:40 PM
Permissions: giving specific groups write access to a directory kinetik Linux - General 3 07-06-2006 08:30 AM
User privilege on NFS directory Rex_chaos Linux - Networking 2 03-22-2002 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration