Linux Group question (nevermind)

Ynog

Golden Member
Oct 9, 2002
1,782
1
0
I have a question regarding groups in linux.

Say I have two groups user and work.
I'm a member of both groups with the default group being user.

When I login I get user as my group when I type groups.
And when I type groups (username) I get user work

That much is to be expected.

However is there a way to have it both groups active in Linux when
I login, without doing anything myself.

Because there is also an Solaris box that has similar setup.
With groups user and work. And I'm a member to both of those
groups as well. However when I login there, (I have to do nothing)
I get user and work as groups when I type groups.

Now I know i can "newgrp work" to get it added to be the active groups. But
short of throwing that in my login file, is there another way to have both
groups come up when you login without doing anything myself.

Never mind. It did work. Needless to say I did something stupid.