Bug 2149979 - Adding NIS user to local group. Secondary NIS groups are missing.
Summary: Adding NIS user to local group. Secondary NIS groups are missing.
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ypbind
Version: 8.6
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Ondřej Sloup
QA Contact: Vaclav Danek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-01 14:02 UTC by Eugene Keck
Modified: 2023-08-09 15:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-141040 0 None None None 2022-12-01 14:05:41 UTC

Description Eugene Keck 2022-12-01 14:02:11 UTC
Description of problem:
Adding NIS user to local group. Secondary NIS groups are missing.

Version-Release number of selected component (if applicable):
ypbind-2.5-2.el8

How reproducible:
Always

Steps to Reproduce:
1. usermod -a -G localgroup testuser

Actual results:
uid=1000(testuser) gid=1000(testuser) groups=1000(testuser),9999(localgroup)

Expected results:
uid=1000(testuser) gid=1000(testuser) groups=1000(testuser),1001(group1),1002(group2),1003(group3),1004(group4),9999(localgroup)

Additional info:
[root@rhel8 ~]# grep testuser /etc/passwd
[root@rhel8 ~]#

[root@rhel8 ~]# grep localgroup /etc/group
localgroup:x:9999:

[root@rhel8 ~]# ypcat passwd
testuser:!!:1000:1000::/home/testuser:/bin/bash

[root@rhel8 ~]# ypcat group
group1:!:1001:testuser
group2:!:1002:testuser
group3:!:1003:testuser
group4:!:1004:testuser
testuser:!:1000:

[root@rhel8 ~]# id testuser
uid=1000(testuser) gid=1000(testuser) groups=1000(testuser),1001(group1),1002(group2),1003(group3),1004(group4)

[root@rhel8 ~]# usermod -a -G localgroup testuser

[root@rhel8 ~]# id testuser
uid=1000(testuser) gid=1000(testuser) groups=1000(testuser),9999(localgroup)

It dose work if nscd is started

[root@rhel8 ~]# service nscd start
Redirecting to /bin/systemctl start nscd.service

[root@rhel8 ~]# id testuser
uid=1000(testuser) gid=1000(testuser) groups=9999(localgroup),1001(group1),1002(group2),1003(group3),1004(group4),1000(testuser)


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