I went to strange situation on my laptop (running Ubuntu 16.04.5 LTS).

All terminals show that my sudo-able user is only a member of its group:

$ whoami 
norbert
$ groups 
norbert
$ id
uid=1000(norbert) gid=1000(norbert) groups=1000(norbert)

$ grep norbert /etc/passwd
norbert:x:1000:1000:Norbert,,,:/home/norbert:/bin/bash

but it is not true as my user is listed in /etc/groups:

$ grep norbert /etc/group
adm:x:4:norbert,syslog
disk:x:6:norbert
lp:x:7:norbert
dialout:x:20:norbert
cdrom:x:24:norbert
www-data:x:33:norbert
plugdev:x:46:norbert
fuse:x:104:norbert,tester
lpadmin:x:105:norbert
admin:x:119:norbert
norbert:x:1000:
sambashare:x:122:norbert
vboxusers:x:124:norbert
debian-tor:x:129:norbert,tester
local:x:1001:norbert
libvirtd:x:138:norbert
wireshark:x:126:norbert

As the result I can't use Arduino IDE and Wireshark.

If I login to this system from SSH - I can see all groups:

$ groups
norbert adm disk lp dialout cdrom www-data plugdev fuse lpadmin admin sambashare vboxusers wireshark debian-tor libvirtd local

Why this happened? What should I do to debug and fix this behavior?

  • Did you do the obvious thing and reboot (or maybe at least log out completely) already? – Byte Commander Dec 2 at 14:05
  • @ByteCommander Thank you! But it was a bug, see answer below. – N0rbert Dec 2 at 14:44
up vote 1 down vote accepted

This problem was linked with my other question about PAM warnings in /var/log/auth.log.

The problem was caused by manually installed PAM KWallet modules. I have installed both (libpam-kwallet4 and libpam-kwallet5), but they can't be installed in the same time as described in the bug 1781418 on launchpad.

I fixed my problem by removing two PAM modules:

sudo apt-get purge libpam-kwallet4 libpam-kwallet5

and then rebooted.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.