Linux Lite Forums
system user name wrong....how to change? - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Installing Linux Lite (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=17)
+--- Thread: system user name wrong....how to change? (/showthread.php?tid=1264)



system user name wrong....how to change? - Monkeyman - 12-13-2014

I just installed 2.2 (awesome so far) and when I set my user name, I didn't think to delete the "System-Product-Name" part.  I just typed the user name I wanted.  Now, the terminal knows me as "[me]-System-Product-Name".  Can I change this to just "[me]" without reinstalling?  I'm sure it doesn't affect anything but I have OCD so it bothers me.

(If this is in the wrong sub forum, I apologize.  I wasn't sure where to put it.)[/me][/me]


Re: system user name wrong....how to change? - Valtam - 12-13-2014

Change 2 files, /etc/hosts and /etc/hostname. Open as Administrator.
In /etc/hostname just change the name. In /etc/hosts change the line 127.0.1.1  youroldname to 127.0.1.1  yournewname
Make sure the new name in each file is identical. Reboot to complete.


Re: system user name wrong....how to change? - Monkeyman - 12-13-2014

Thank you very much!  Worked like a charm!


Re: system user name wrong....how to change? - Valtam - 12-13-2014

No problem Smile


Re: system user name wrong....how to change? - Learning - 02-10-2017

(12-13-2014, 04:50 AM)Monkeyman link Wrote: Thank you very much!  Worked like a charm!
Worked great for me as well. It may help to make a note that the /etc/hostname file is a hidden file, though. But I guessed it must be there or you would not have mentioned it and so I just checked "show hidden files".


Re: system user name wrong....how to change? - LL-user - 02-10-2017

Hi Dan,

That's a bit strange.

/etc/hostname is not a hidden file. To be a hidden file it would have to be with a dot: /etc/.hostname
So, you only can see that file if you navigate with your file-manager (Thunar) to /etc/ and choose "Show Hidden Files"?

Also, just for clarification as the thread title is a bit confusing.

There is:
* system name, which is also called host name, describing how your computer is called
* user name, which is obviously the name you log in with. And of course there can be more than one user.

There is not really such a term as "system user name".