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:14 PM   #1
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Rep: Reputation: 0
need clarity to assign uid on OEL 5.5


Hi,

Can we maintain same id for user & group ?

PHP Code:
# groupadd -g 501 oinstall
# groupadd -g 502 dba
# groupadd -g 503 asmadmin
# groupadd -g 504 asmdba
# groupadd -g 505 asmoper 
#########################################
##### Creating 'oracle & grid' user #####
#########################################


PHP Code:
# useradd -u 550 -g oinstall -G asmadmin,asmdba,asmoper grid
# useradd -u 551 -g oinstall -G dba,asmdba oracle 
Instead of 550 & 551
can i use 501 for grid and 502 (oracle) --> uid ?


PHP Code:
[root@RAC1 ~]# cat /etc/*release
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Oracle Linux Server release 5.11
Red Hat Enterprise Linux Server release 5.5 
(Tikanga
 
Old 11-25-2017, 01:20 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,815

Rep: Reputation: 6974Reputation: 6974Reputation: 6974Reputation: 6974Reputation: 6974Reputation: 6974Reputation: 6974Reputation: 6974Reputation: 6974Reputation: 6974Reputation: 6974
Quote:
Originally Posted by Joy Stick View Post
Hi,
Can we maintain same id for user & group ?
PHP Code:
# groupadd -g 501 oinstall
# groupadd -g 502 dba
# groupadd -g 503 asmadmin
# groupadd -g 504 asmdba
# groupadd -g 505 asmoper 
#########################################
##### Creating 'oracle & grid' user #####
#########################################
PHP Code:
# useradd -u 550 -g oinstall -G asmadmin,asmdba,asmoper grid
# useradd -u 551 -g oinstall -G dba,asmdba oracle 
Instead of 550 & 551 can i use 501 for grid and 502 (oracle) --> uid ?
PHP Code:
[root@RAC1 ~]# cat /etc/*release
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Oracle Linux Server release 5.11
Red Hat Enterprise Linux Server release 5.5 
(Tikanga
Only if:
  1. That UID number doesn't exist on the second server
  2. And you create/modify that user to have that UID
You are using a VERY old copy of OEL (again), and as an Oracle DBA (?) you should be very familiar with how to configure Oracle and what the requirements are. The UID number DOES NOT matter.
 
1 members found this post helpful.
  


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
What is the difference between Real UID and Effective UID in terms of file attributes techie_san778 Linux - Server 4 05-11-2013 12:20 AM
Duplicate UID Assign a uniqueUID ycj Linux - Server 0 06-23-2008 09:28 PM
Changing the UID of a Physical Volume to a specific UID jambraun Linux - Newbie 2 02-09-2006 02:34 PM
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 08:05 PM

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

All times are GMT -5. The time now is 05: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