0

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:

enter image description here

4
  • A screenshot of the authentication dialog will be helpful. Is it the user name or the host name?
    – FedKad
    Mar 15, 2022 at 8:19
  • @FedKad question updated with the requested screenshot. On my personal PC the displayed name is my full name, not user name.
    – Mark
    Mar 15, 2022 at 8:24
  • 1
    Perhaps I found it under Settings > Users > pencil icon to edit the name
    – Mark
    Mar 15, 2022 at 8:26
  • @Mark You have found the correct answer. You may want to answer your own question and convert your comment to an answer. Then accept your answer as the correct one.
    – user68186
    Mar 15, 2022 at 15:48

2 Answers 2

2

You can find it under Settings > Users and use the pencil icon to edit the name details.

-1

The way to change the name via the GUI is to navigate to Settings > Users. This menu will allow you to edit the user name.

4
  • The question is not about the device name. The question is about the name of the user. So this answer is wrong. I am down voting your answer. If you correct your answer I will remove the down vote.
    – user68186
    Mar 15, 2022 at 15:48
  • @user68186 Ah, my fault. Totally misread it. I've edited it, though the answer was already taken care of above. Mar 15, 2022 at 16:09
  • I have removed my down vote. However there is another one that I don't have any control over. You may want to delete the answer to get rid of the negative vote. Welcome to Ask Ubuntu.
    – user68186
    Mar 15, 2022 at 16:21
  • 1
    Thanks, amigo. I think I'll leave it up to show other newcomers what NOT to do. Mar 15, 2022 at 16:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .