LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2003, 02:08 PM   #16
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30

Well..

I'm pulling together a bunch of J's postings. He's been complaining about not being able to add users - this thread,

Please Help I've lost my Gui : http://www.linuxquestions.org/questi...threadid=47212

My gdm.conf file is stuffed :
http://www.linuxquestions.org/questi...threadid=47156

And urm.. I'm sure there was another one somewhere - which all appear to be related.

J's been adding group entries for every user he creates - for the purposes of allowing um.. 'group' access to home directories or something. A spectacularly bad idea, and I had done some research on the maximum amount of groups possible under a default Linux install.

I came up with the number 32 and had written a whole heap of stuff on the limit, why it was a bad idea to do 'per user groups' in the first place, and possible workarounds.
While fiddling on a machine here, out of curiosity I did a count on the number of groups on *my* machine, and came up with 41. Which... completely invalidated the stuff I had researched.

So.. I deleted my post and figured I needed more information.

I've not gotten it though (I'm at work, and um.. working :P) so I'll post what I *have* and maybe someone else can figure out why I'm seeing results which conflict.


I figure that he's over-done his group file and that it's working on a first-in-first-out basis and his gdm group has been shoved off the list, and therefore he's having rights problems when trying to run his Gui.

I would suggest backing up your group file, hacking it down to the basics again (below say 50 groups), and see if that helps.

Here's wot I wrote earlier, but bear in mind, I can't make it tally with my experience in the field :

-----------------------------------------------------------
You have a limit of 32 groups, by default.

While it doesn't address Linux specifically you may want to look at this :

http://web.gnu.walfield.org/mail-arc...gust/0020.html

What may not help is the information that the number of groups is hard coded into the kernel. You're welcome to recompile your kernel and up the number of groups. You will want to look in : /usr/include/asm/param.h

and change the line :

#define NGROUPS 32

Also in /usr/include/linux/limits.h
and change :

#define NGROUPS_MAX 32 /* supplemental group IDs are available */

and then recompile your kernel. Recompiling is not trivial, and you'll probably break something.

Further reading (with quotes from Linus of all people) can be found below on why it happens this way :

http://www.uwsg.iu.edu/hypermail/lin...07.3/1007.html

Slick.

-----------------------------------------------------------------------

Notes : The above infers there's a limit of 32 groups. Which is bourne out by my inspection of the header files there. But I get 41 working groups out of a pretty default install of Redhat 7.3.. So, I dunno.
 
Old 02-26-2003, 02:14 PM   #17
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
I shall further the above comment by questioning the motive behind the addition of the groups in in the first place.

I'm not sure if it's in this thread or another, but *why* are you using groups to control access to home directories instead of the *user*?

Slick.
 
Old 02-26-2003, 02:51 PM   #18
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
my bad slick, i realize now what i should have done. i am going to delete all of the groups that i created and try to fix it from there.

am new to this linux stuff. when it created it by default it really screwed me up.
 
Old 02-26-2003, 02:58 PM   #19
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
i took all of the users out i created. now i have less then 32 groups. problem is still here.

is there something else i might have to do?

i have been trying everything to fix this. and keep getting the same problems

do i have to compile the kernel again?
 
Old 02-26-2003, 03:12 PM   #20
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
No.. no compiling needed - I'm really not certain on that anyway.

But... You should have a line in your group file which reads something like :

gdm:x:42:

>when it created it by default it really screwed me up.

If you have large numbers of users to group together figure out a group relating to function, and use :

useradd <user> -g <main group> -G <group>,<group>,<group>

-g initial_group
The group name or number of the user's initial login group. The group name must exist. A group number must refer to an already existing group. The default group number is 1.

-G group,[...]
A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the -g option. The default is for the user to belong only to the initial group.


Slick.
 
Old 02-26-2003, 03:39 PM   #21
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
now check this out

i start the machine, get the same error, log in with the command prompt, i type startx, the gnome desktop starts up, but the error keeps popping up on my machine.

in the group file i have gdm:X:42:

this is very weird
 
Old 02-26-2003, 03:43 PM   #22
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Um.. what error is that exactly?
 
Old 02-26-2003, 09:10 PM   #23
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
the error i keep getting is:

the gdm group does not exist. fix the configuration file and restart the gdm daemon.
 
Old 02-27-2003, 11:09 AM   #24
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
I'm rapidly running out of ideas...

I did catch this though :

http://mail.gnome.org/archives/gnome.../msg00105.html

Which says :

And you need to make sure both the gdm user and the
gdm group exist on the system.

D'you still have your gdm user?

Slick.
 
Old 02-27-2003, 12:00 PM   #25
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
yes the gdm user still exits. i have a feeling i am going to have to reload the operating system again.

i really dont know what else to do. i have tried everything.
 
Old 10-08-2003, 07:59 PM   #26
tdaffin
LQ Newbie
 
Registered: Sep 2003
Location: Denver, CO
Distribution: RedHat 8.0
Posts: 4

Rep: Reputation: 0
Quote:
in the group file i have gdm:X:42:
I am a total noob to linux, but I am aware of case-sensitivity issues, and I noticed there that your 'X' is UPPERCASE, whereas in my /etc/group all 'x's are lowercase.
Maybe it was just a typo tho'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding new users Brian Du Preez Linux - Newbie 1 10-04-2005 12:33 PM
Adding New Users guygriffiths Linux - General 4 10-13-2003 10:11 AM
Adding many users? ricardocastro Programming 4 02-19-2002 01:22 PM
Adding new users Fried Linux - Newbie 4 09-24-2001 10:37 AM
adding Users hextex Linux - Newbie 5 06-08-2001 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration