In Ubuntu Studio 22.04 LTS I usually log in as a non-privileged domain user. If I need to perform an administrative task (in a terminal window), I have previously used "su" to change to a local or domain administrator account. This no longer works. Instead, "su" yields the error message:
su: user <user_name> does not exist or the user entry does not contain all the required fields
Something else which has changed and may be related, is that my domain user name in the terminal window prompt now appears as:
<domain_user>@<domain>@<computer_name>
This used to appear as:
<domain_user>@<domain>
I am not aware of having done any thing to cause this change.
In view of this, I have tried all of the following "su" commands, but they all yield the same error message:
su <local_admin>
su <domain_admin>@<domain>
su <domain_admin>@<domain>@<computer_name>
whoami
yields <domain_user>@<domain>
(which is also how I log in).
grep <local_admin> /etc/passwd
and getent <local_admin>
both produce the expected output:
<local_admin>:x:1000:1000:<local_admin>:/home/<local_admin>:/bin/bash
sudo -iu <local_admin>
prompts me for a sudo password for my current logged in user, <domain_user>@<domain>
, which is unprivileged and therefore does not have a sudo password.
Network shares of domain users are still being mapped and access permitted correctly.
Any clues as to what is wrong or how to identify the cause of the problem would be most welcome!