I want to change my PC name in Ubuntu 21.10. I edited:
/etc/hostname
/etc/hosts
and rebooted. Now I can find my PC using the new name and also the prompt shows it correctly.
But when it requires an authentication, i.e. when you want to install new updates from the GUI, a popup dialog appears asking the password. In this popup the name displayed is the older one.
Where does Ubuntu store the name shown in this authentication dialog?
EDIT:
I thought there was only one authentication popup dialog. Anyway, I'm talking about this one: