George Gallen on 3 Aug 2006 13:14:35 -0000 |
thanks. It's definitely the big group that is the problem. I backup up the groups removed the big group, and all was well. Only problem is just about every user on the system is a member of the big group "users". Can groups have groups in them? Say, I broke up the big group into 10 groups, is there a way to make a group of the 10 groups? I haven't read that there were... George > -----Original Message----- > From: plug-bounces@lists.phillylinux.org > [mailto:plug-bounces@lists.phillylinux.org]On Behalf Of Stephen Gran > Sent: Wednesday, August 02, 2006 7:52 PM > To: plug@lists.phillylinux.org > Subject: Re: [PLUG] are there any forbidden group names? or numbers? > > There is a limit on how many people can be members of a group, but it > shouldn't be anywhere near that low. You can check the compile time > setting with getconf, but I can't for the life of me remember > the macro > to give it. I don't think it's NGROUPS_MAX (I think that's how many > groups a user can be a member of, not how many members can be in a > group), but maybe google will tell you. > > At any rate, if it was NGROUPS_MAX, you would run > getconf NGROUPS_MAX > > > awk -F: '{print $1}' /etc/group | sort | uniq -c | awk '$1 > > 1 {print $2}' > awk -F: '{print $3}' /etc/group | sort | uniq -c | awk '$1 > > 1 {print $2}' > > Repeat for /etc/gshadow. > > The first sorts on group name, and prints if it's not unique, > the second > sorts on group number and prints if it's not unique. There are more > elegant ways to write it, but the file shouldn't be so big and you > shouldn't be running it so often it really matters. The > important thing > is, if you have any output at all from those commands, you have > something to investigate. > -- ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|