Operating System - HP-UX
1833858 Members
3370 Online
110063 Solutions
New Discussion

gid for a user is not picking from /etc/group file

 
SOLVED
Go to solution
M.Saravanan
New Member

gid for a user is not picking from /etc/group file

Hi,

There was a user whose uid is 101(oracle)and gid is 103(dba) . The group entry dba gone missing in /etc/group file. I have created a dba group again with same gid(103) and added oracle user in to the group. When I give the command 'id oracle' as root user it gives the output correctly as 'uid=101(oracle) gid=103(dba)' . where as when I login as oracle and give id command it says 'uid=101(oracle) gid=103()'. It doesn't recognize group name 'dba'. I appreciate, if some could help me out ASAP - I am not able to start Oracle database due to this.
8 REPLIES 8
RAC_1
Honored Contributor

Re: gid for a user is not picking from /etc/group file

pwck
grpck
There is no substitute to HARDWORK
M.Saravanan
New Member

Re: gid for a user is not picking from /etc/group file

I have done pwck & grpck - both doesn't throw any error
Steven E. Protter
Exalted Contributor

Re: gid for a user is not picking from /etc/group file

If what you report is accurate, then grpck and pwchk should both show errors.

Is anyone by chance making a Golden Ignite Image of this system? If this is the case, the /etc/passwd and /etc/group file are temporarily modified during this process.

They can be messed up for several hours depending on the size of the system being imaged.

Its not a good idea to make a Golden Image of a system while the database is running, or if you need to run the database.

ps -ef | make_sys

Might pick up the Golden image being made.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor
Solution

Re: gid for a user is not picking from /etc/group file

Hi:

Make sutre that /etc/group is readable by everyone : -r--r--r-- .

Regards!

...JRF...
M.Saravanan
New Member

Re: gid for a user is not picking from /etc/group file

I found there is no make_sys process is running

Here is the output of pwck & grpck

# pwck

ragboddu:dhddhd:116:20::/home/ragboddu:/usr/bin/sh
Login directory not found

sanjeev1:ddhdh:117:20::/home/sanjeev1:/usr/bin/sh
Login directory not found

vkuntamu:dhdhd:118:20::/home/vkuntamu:/usr/bin/sh
Login directory not found
# grpck
#
john korterman
Honored Contributor

Re: gid for a user is not picking from /etc/group file

Hi,

is your login as oracle performed on the server itself?

regards,
John K.
it would be nice if you always got a second chance
RAC_1
Honored Contributor

Re: gid for a user is not picking from /etc/group file

nsquery passwd oracle
nsquery group dba

Does it report any errors??
Check perms on following files.
/etc/passwd
/etc/group
/etc/nsswitch.conf.

At least read perms for group and others.
There is no substitute to HARDWORK
M.Saravanan
New Member

Re: gid for a user is not picking from /etc/group file

oh!! How I missed this?

The permission of /etc/group was -r--r--

I changed to -r--r--r. It works fine.

thanks for all who contributed.