Bug 57114 - cannot add groups to current user without reboot.
Summary: cannot add groups to current user without reboot.
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: gnome-session (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 minor
Assignee: Yuri N. Sedunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-03 18:53 MSK by nbr
Modified: 2025-12-08 13:15 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nbr 2025-12-03 18:53:13 MSK
Sisyphus regular gnome
Graphical session.
1) login to interactive shell as user user1
2) su - ; usermod -aG group1 user1
(groups successfully added in /etc/group for user1)
3) logoff; logon as user1
4) id
shows that user1 is NOT a member of group1
Only after reboot user1 becomes a member of group1
Comment 1 Yuri N. Sedunov 2025-12-03 19:16:55 MSK
Чего?
Comment 2 nbr 2025-12-08 13:15:34 MSK
Похоже в gnome выход из сессии != выход из systemd сессии.
Поэтому обычный способ изменить себе группу при уже работающей 
su 
изменить группу
выйти из su
выйти из сессии
войти
не работает.
При последующем входе, несмотря на изменения в файлах /etc/group
пользователь user не получит членства в только что добавленных ему группах, что 
противоречит обычной практике.