01-03-2002
You have a very serious problem. In your /etc/group file you have two lines, one for "sys" and one for "dba" that both have the same group id. When you added the dba group to your system you were supposed to insure that it had a unique group id. When you have something like:
sys::3:
dba::3:
then the dba group is really just an extention of the sys group.
You need to assign a unique group id to the dba group. Then you need to run chgrp on all those oracle files to get set to the right group.
Your /dev/mem and /dev/kmem files may be readable by the group sys; if so, this is a real security hole.
But, on the bright side, if you ever have a group with too many users to fit on one line in /etc/group, you will know what to do
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi!
Herez the scenario
1. logged in as user xxxx
$ id
uid=125(xxxx) gid=101(my_grp) groups=0(system),15(users),16(sysadmin),19(adm),110(appl)
$ touch test
$ ls -la test
-rw-r--r-- 1 xxxx system 0 Mar 7 14:31 test
Why is the group of the file test 'system' and not... (2 Replies)
Discussion started by: sdharmap
2 Replies
2. UNIX for Dummies Questions & Answers
I was asked to set up a unix system and i am at a loss. i need to know the best one for a small to medium sized business and how to go about setting up the uids and the guids for the network. what permissions i have available and such. (1 Reply)
Discussion started by: dwchapman
1 Replies
3. Solaris
Hi all,
I have a existing user user1 its group id dba
i have created a new user named: uta and added to group dba
my task for creating uta ( to ftp solaris server from /oracle/pcmia/dry1 & oracle/pcmia/dry2 and get some rdf ( database patch) and saved in one windows folder named d:\patch... (2 Replies)
Discussion started by: saurabh84g
2 Replies
4. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
5. Shell Programming and Scripting
Hello,
is there any command which can show a particular user "xyz" is belongs to how many groups
thanks (3 Replies)
Discussion started by: lookinginfo
3 Replies
6. Ubuntu
Hi,
Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01".
I want both in the sames privileges and group. Please see the existing users list below;
drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies
7. Debian
Can someone help in creating a group and user.
syntax to create a Group called Members.
syntax to create a user called AAAA and place in to the Group Members.
Thanks for your help in Advance. (3 Replies)
Discussion started by: sawyer
3 Replies
8. Shell Programming and Scripting
hi
i have vert strange query.. can we add user in unix with out assigned it to any group i mean user which is having no default group or anything..
like this in /etc/passwd file
new_user::::::::
Please help (2 Replies)
Discussion started by: aishsimplesweet
2 Replies
9. Linux
Hi I am facing problem of taking backup of file system as username1.
There are some files in system which is having group ownership as nobody.
and username1 is not able to open this file and backup is failing .Even as a root user I can not open this file.
File which is creating problem is ... (1 Reply)
Discussion started by: devesh123
1 Replies
10. Red Hat
Hi,
In the following output you can see the the user "richard" is a member on the team/group "developers":
# id richard
uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers)
but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies
LEARN ABOUT REDHAT
getgrgid
GETGRNAM(3) Linux Programmer's Manual GETGRNAM(3)
NAME
getgrnam, getgrgid - get group file entry
SYNOPSIS
#include <grp.h>
#include <sys/types.h>
struct group *getgrnam(const char *name);
struct group *getgrgid(gid_t gid);
DESCRIPTION
The getgrnam() function returns a pointer to a structure containing the group information from /etc/group for the entry that matches the
group name name.
The getgrgid() function returns a pointer to a structure containing the group information from /etc/group for the entry that matches the
group gid gid.
The group structure is defined in <grp.h> as follows:
struct group {
char *gr_name; /* group name */
char *gr_passwd; /* group password */
gid_t gr_gid; /* group id */
char **gr_mem; /* group members */
};
RETURN VALUE
The getgrnam() and getgrgid() functions return the group information structure, or NULL if the matching entry is not found or an error
occurs.
ERRORS
ENOMEM Insufficient memory to allocate group information structure.
FILES
/etc/group
Group database file
CONFORMING TO
SVID 3, POSIX, BSD 4.3
SEE ALSO
fgetgrent(3), getgrent(3), setgrent(3), endgrent(3)
GNU
1993-04-04 GETGRNAM(3)