Solaris 9: group have always the same id


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Solaris 9: group have always the same id
# 1  
Old 06-06-2008
Solaris 9: group have always the same id

Hello,
I have a strange behavior of a Solaris 9 machine. Every time I create a new group it has always the same ID 100 instead of having a different one.

Code:
$ groupadd -g 5000 test
$ groupadd test2
$ groupadd test3
# /etc/group contains then the entires:
test::5000:
test2::100:
test3::100:

Any ideas ?

thanks Tex
# 2  
Old 06-06-2008
You have a corrupted entry in /etc/group. Run grpck to find the errors in /erc/group and fix the errors it finds.
# 3  
Old 06-06-2008
Quote:
Originally Posted by Perderabo
You have a corrupted entry in /etc/group. Run grpck to find the errors in /erc/group and fix the errors it finds.
Hi,
well I tried the following:
Code:
$ mv /etc/group /etc/group.bak
$ touch /etc/group
$ grpck /etc/group
$ groupadd test2
$ groupadd test3
$ groupadd test4
$ cat /etc/group
test2::100:
test3::100:
test4::100:


I also ran grpck on the original /etc/group and I have messages like this

Code:
bin::2:root,bin,daemon
        bin - Duplicate logname entry (gid first occurs in passwd entry)

but I dont think this is a problem cos I have the same messages on another server where I dont have this issue. Furthermore, when I had an empty /etc/group, grpck want complaining but the IDs were still the same Smilie

regards,
Tex
# 4  
Old 06-06-2008
I've just found a possible solution in Google for this. It looks like the getent command is missing. The package SUNWnisu is not installed.

tex
# 5  
Old 06-06-2008
Well looking at the source code, groupadd actually invokes an external pipeline:
getent group|cut -f3 -d:|sort -nr|uniq
to find the highest gid. Somehow this pipeline is failing. If the group file is not corrupt, then maybe of of the program in the pipeline is corrupt.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

IPMP group failed on Solaris 9

Hi, I have Solaris-9 server, V240. I got alert that one of the interface on IPMP configuration, is failed. Found that two IPs (192.168.120.32 and 192.168.120.35) are not pingable from this server. These two IPs were plumbed on another server and that is decommissioned now. That is the reason,... (5 Replies)
Discussion started by: solaris_1977
5 Replies

2. Solaris

Solaris LDAP group problem

I have a test environment which is running RedHat 6.5 Identity management. On the lab network are two Solaris 10 (U11) machines. I can successfully log into the S10 machines using the ldap username/passwords. However, I have a problem with groups and although I found through an internet search one... (3 Replies)
Discussion started by: cjhilinski
3 Replies

3. Solaris

Solaris group ID permission drwxrwS--x

why is the group id in capital S and not lowercase s ? I have a directory with the following permissions: drwxrws--x when I remove the group id and add it again with g+s or chmod 2765 , it displays the group ID in capital "S" instead of lowercase "s" tried to find this out on Google, but... (2 Replies)
Discussion started by: misterx12345
2 Replies

4. Solaris

Unable to add new group in Solaris

I have installed Solaris 10 in VMware. Whenever I am trying to add new group using the command '/usr/sbin/groupadd/oinstall' while logged in as root , it is showing as '/usr/sbin/groupadd/oinstall can not execute'. It will be great to hear any inputs/advice here. (4 Replies)
Discussion started by: sandip250382
4 Replies

5. Solaris

Which Solaris 10 software group is installed?

Hey Forumers- I know how to tell which update of Solaris 10 is installed on my systems (/etc/release) but how can I determine which software group is installed? reduced network support software group (SUNWCrnet) core system support software group (SUNWCreq) end user system support... (2 Replies)
Discussion started by: bluescreen
2 Replies

6. Solaris

Solaris + VCS , move a resource to another group

Hi, I am running Solaris 10 + VCS 5 in one of our environment. Recently one of my colleague configured all resources in a single service group.( ie, one service group which has all resources) ,Usually we create seperate service groups for Hardware & for application. For eg: SYS_HW_GRP, will... (0 Replies)
Discussion started by: mpics66
0 Replies

7. Solaris

How to list group members in solaris 9

Hi, I already gone through with old post regarding listing the group members and tried the command getenv group other the result is other::1:root i listed my part of the /etc/passwd file below test1:x:100:1::/home/test1:/bin/sh test2:x:101:1::/home/test2:/bin/ksh... (7 Replies)
Discussion started by: vr_mari
7 Replies

8. Solaris

Solaris group - tty

Hi, Anyone know what is the use of the tty group in Solaris 8 , I was question by auditor that tty group exist in the /etc/group but without a user exist in /etc/passwd and /etc/shadow file . "User accounts listed in the etc/group should be also listed in the etc/passwd. It is possible... (2 Replies)
Discussion started by: civic2005
2 Replies

9. Solaris

How do you list users in a solaris group

I need to list all users in a group. This is a large unix site running nis+. (6 Replies)
Discussion started by: gillbates
6 Replies
Login or Register to Ask a Question