• I downloaded the current iso file of Ubuntu MATE from the website.
  • I did a completely fresh install of Ubuntu MATE 16.04 (specifically 16.04.5).
  • I created a default user while installing with its GUI called test (full name Test). The system thus created a UPG called test.
  • after installation had finished, I restarted the system.
  • Now on the completely fresh system I open System > Control Center > Users and Groups > Manage Groups.
  • I look for the test group and press Properties, and here it is... user test is not member of group test!

it looks like /etc/group suggests the same: (2nd last line)

test@test ~ $ less /etc/group | grep test

but according to how should `id` and `/etc/group` be read? the primary group of a user is only listed in /etc/passwd and not additional in /etc/group to avoid redundancy.

id <username> seems to suggest a little bit different:

test@test ~ $ id test
uid=1000(test) gid=1000(test) groups=1000(test),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),129(sambashare)

the best way to proof is groups <username>:

test@test ~ $ groups test
test : test adm cdrom sudo dip plugdev lpadmin sambashare

So is this a bug by the GUIs? - Somehow i doubt it, because of how long time it is there and also present in two well known DEs...

  • 4
    Whether a user gets assigned a UPG or not at account creation is determined by the /etc/adduser.conf settings (unless the account is created using lower-level means such as useradd) . What happens after that is up to the admin. – steeldriver Aug 27 '18 at 12:06
  • @steeldriver reads as an answer to me; besides maybe a remark that UPG is not used by default ;) – Rinzwind Aug 27 '18 at 17:01
  • 2
    @Rinzwind everything in the OP's terminal output says that user test is in group test (the UPG) - so I guess the question should really be why the GUI users-and-groups pane said something different? – steeldriver Aug 27 '18 at 17:15
  • I can confirm this behavior in Ubuntu Studio 18.04 (xfce4). The GUI shows that I'm not a member of my UPG, but for all other groups I am a member of (according to id) the membership is displayed correctly. Likely a bug in the GUI. – mook765 Aug 27 '18 at 17:49
  • It's correct in my Ubuntu MATE 18.04, same settings structure as OP - Properties for my group lists me as a member – Zanna Aug 27 '18 at 17:55

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.

Browse other questions tagged or ask your own question.