User group assignment - how to make it effective

Hello

I have a problem with group assignment (openSUSE 11). After I add a new group and a user to that group in Yast, I have to restart to make the assignment effective (as confirmed by executing “groups” command in shell). Is there any way to make it effective without rebooting?

What I have done:

  • Inside KDE4, run Yast > Security And Users > User and Group management
  • I add new local group and my current user ID to that group
  • Open a new Konsole and type “groups”, the new group was not shown there
  • Log out of KDE, then log in again. Open a new Konsole and type “groups”, the new group still not shown

Thanks for any advice/pointer

Hmm… I just did it again just to make sure (add new group and assign user), but now it became effective after I log-out and log-in to KDE again…

Don’t know what’s wrong with my previous attempt. Anyway, close this issue.

You only need to logout and login again, not reboot, as you have discovered. The reason is that the group list is read in once by the login session shell.