Different groups for same user

Benny

I am using Ubuntu 16.04 with a remote active directory server. To login on my Ubuntu machine, I use the username and password from active directory.

I recently had to run pam-auth-update because it was no longer possible to log in with my AD credentials. However after running this, my groups seem to be mixed up.

The following information should help clarifying my problem:

myusername@machine:~$ whoami          
myusername
myusername@machine:~$ id
uid=10004608(myusername) gid=10000513(domänen-benutzer) Gruppen=10000513(domänen-benutzer)
 myusername@machine:~$ id myusername
uid=10004608(myusername) gid=10000513(domänen-benutzer) Gruppen=10000513(domänen-benutzer),999(docker),132(wireshark),10004608(myusername),[... a lot more AD groups]
myusername@machine:~$ su - myusername
Password: 
myusername@machine:~$ id
uid=10004608(myusername) gid=10000513(domänen-benutzer) Gruppen=10000513(domänen-benutzer),132(wireshark),999(docker),10004608(myusername),[... a lot more AD groups]
myusername@machine:~$ whoami
myusername
myusername@machine:~$ 

Running su - myusername gives me all my usual groups like docker, but my login shell only gives me only a subset of my usual groups.

I guess I have to change some config file in /etc/pam.d but I have no clue what to look for.

Benny

Apparently I am not the only one with this problem, this answer helped me solve the problem.

To be precise, I had to comment out the following two lines from /etc/pam.d/lightdm

auth optional pam_kwallet.so
auth optional pam_kwallet5.so

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Count different groups in the same query

Group different groups as the same and count?

Capture the same match into different groups

`groups` and `groups $USER` show different groups (dialout is missing)

Get number of same individuals for different groups

Route::bind with same name in different groups?

How to create different user groups in Firebase?

Why do `groups` and `groups $USER` give different results?

Is it possible to add different roles to a user in different groups in keycloak?

Save different data for same user on different Guilds

Same spreadsheet, same cell, but different results, with different user

Reshaping data by appending rows from different groups to the same row

Oracle: Sum cell values for same id but different groups

Receiving multicast data from different groups on the same socket in linux

Is it valid for two groups to have the same name (but different gid)?

How to calculate a simple function for different groups of the same dataframe?

JS regexp: exec(): "merge" different groups to the same result

How to show different groups in same matrix where no parent or child relationship

Configure Same offset for Kafka consumers from different groups

Ansible access same group vars different children host groups

Two security groups with different permissions for the same model - Odoo

Moving observations from different groups into the same rows in R?

User Groups not working in one server. same is working in another server

firewalld rules to route two user groups to different apps in OpenVPN

Why is my user in different groups when logged in via SSH and on the desktop?

How to catch the same user with different ip

How to store a different registration token for the same user?

Outlook - send as different email, same user

UID for same user is different in Firebase database and authentication