Bug 1464445 - Re-logging in does not re-load user groups
Re-logging in does not re-load user groups
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: gdm (Show other bugs)
25
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Ray Strode [halfline]
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-23 08:38 EDT by Alan Jenkins
Modified: 2017-11-16 15:02 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-16 15:02:18 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alan Jenkins 2017-06-23 08:38:12 EDT
Description of problem:

Logging out and back in does not re-load the user's groups.

Version-Release number of selected component (if applicable):

gdm-3.22.3-1.fc25.x86_64

How reproducible: I tried several times, including with either X session or Wayland, all attempts had this problem.


Steps to Reproduce:
1. addgroup testgroup
2. usermod -a -G testgroup $USER
3. id -a $USER
4. log out of GNOME session
5. log in to GNOME again (using gdm)
6. id -a

Actual results:

uid=1000(alan-sysop) gid=1000(alan-sysop) groups=1000(alan-sysop),10(wheel),1003(testgroup)

uid=1000(alan-sysop) gid=1000(alan-sysop) groups=1000(alan-sysop),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Expected results:

The groups in the output of `id -a $USER` and `id -a` should be the same, after logging out and back in again.

Additional info:

This is not 100% documented... the Fedora System Adminstrator's Guide doesn't mention *any* method to re-load groups, implying that they take effect immediately.  However the behaviour is widely expected, e.g. https://unix.stackexchange.com/a/11573/29483
Comment 1 Alan Jenkins 2017-06-23 08:54:01 EDT
Rebooting gets the groups reloaded OK.

Originally I tried to restart gdm (while I was still logged in) - I know this forcibly logs you out.  But for a while now this ends up with the screen constantly flickering, gdm seems to fail in a loop with "(WW) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted".  So I was not able to test this.
Comment 2 Fedora End Of Life 2017-11-16 14:14:54 EST
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Comment 3 Alan Jenkins 2017-11-16 15:02:18 EST
Appears fixed in F26, yay!

Note You need to log in before you can comment on or make changes to this bug.