Understanding Groups


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Understanding Groups
# 1  
Old 06-08-2011
Understanding Groups

Hi

Code:
cat /etc/group :
....
oinstall:x:401:
dba:x:400:oracle
...

cat /etc/passwd|grep oracle 
oracle:x:130:401::/home/oracle:/bin/ksh

1. Is that mean that :
ORACLE user has OINSTALL as it Primary group and DBA as secondary group ?

2. What is the linux comman to set ORACLE user with primary group OINSTALL and DBA as it secondary group ?

Thanks

Last edited by pludi; 06-08-2011 at 04:28 PM..
# 2  
Old 06-08-2011
1. Yes
2. One is permission to upgrade software, one is access to data? Oracle knows!
# 3  
Old 06-08-2011
Quote:
2. What is the linux comman to set ORACLE user with primary group OINSTALL and DBA as it secondary group ?
Usernames and group names are case-significant. The answer to your question (though not relevant because it will change nothing on your system). This is an academic answer and not to be typed:
Code:
usermod -g oinstall oracle
usermod -G dba oracle

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 groups

I have a Solaris 10 system inherited from several previous admins. While trying to decipher a permissions issue, I ran "grpck" and it reported a ton of errors. Among them were these: 1. group name too long 2. group name contains illegal characters (special chars or caps) 3. group membership... (2 Replies)
Discussion started by: cjhilinski
2 Replies

2. Shell Programming and Scripting

Sorting in groups

Hi, I am looking at a slightly different sorting problem and I am not sure how to do it in bash. I have the following input: 0 ... (8 Replies)
Discussion started by: jamie_123
8 Replies

3. Shell Programming and Scripting

umask and groups

Hi I see that I can use umask to set the default permissions on files created by a script like so - umask u=rwx,g=rwx,o= So that would grant rwx to the user and group. My question is how do I control the group this applies to? I want a script to create files under... (3 Replies)
Discussion started by: steadyonabix
3 Replies

4. UNIX for Dummies Questions & Answers

Groups

Must I be in a group? I am using Ubuntu and am the only user on my PC. I know how to change groups but do not see a way to not be in a group. Any help would be appreciated. (2 Replies)
Discussion started by: nthepines
2 Replies

5. Shell Programming and Scripting

Difference between id and groups

What's the difference between groups and id-a. We're using LDAP, rather than NIS+, and a user has been added to an extra Unix group. The groups command shows the new group but id -a doesn't! Why would this be? (5 Replies)
Discussion started by: JerryHone
5 Replies

6. Solaris

groups

1 user in member of 4 groups find file permissions and default group (1 Reply)
Discussion started by: tirupathi
1 Replies

7. Solaris

groups

how to create 1000 users in 1 group (0 Replies)
Discussion started by: tirupathi
0 Replies

8. AIX

Where are my groups

Hello A couple of weeks ago, I added a user to an AIX 5.3 system. I go to add one today, and it appears that when creating a user in smit, I cannot see any groups. No primary groups No Group set No Admin Groups The /etc/group and etc/secuity/group files seem to be intact. I did... (4 Replies)
Discussion started by: mhenryj
4 Replies

9. UNIX for Dummies Questions & Answers

users and groups

hi eveyone i've recently requested my unix admin to create a userid for 2 groups. He created the id and i can see it by grep "id" /etc/group. But when i login with that id into unix and try to cd that group it says permission denied. something like cd /groupname -- permission denied Can my admin... (1 Reply)
Discussion started by: sammet
1 Replies

10. UNIX for Dummies Questions & Answers

User groups

Hi I have a user zak and 4 groups:- oracle stats data archive I want user zak to be part of the oracle and stats group but not be able to view,list anything in data and archive. Also anyone in the data and archive group should not be able to view,list anything in oracle and stats....... (3 Replies)
Discussion started by: Zak
3 Replies
Login or Register to Ask a Question