Linux Lite Forums

Software - Support => Installing Linux Lite => Topic started by: Monkeyman on December 12, 2014, 11:28:35 PM

Title: system user name wrong....how to change?
Post by: Monkeyman on December 12, 2014, 11:28:35 PM
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]
Title: Re: system user name wrong....how to change?
Post by: Jerry on December 12, 2014, 11:43:40 PM
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.
Title: Re: system user name wrong....how to change?
Post by: Monkeyman on December 12, 2014, 11:50:04 PM
Thank you very much!  Worked like a charm!
Title: Re: system user name wrong....how to change?
Post by: Jerry on December 12, 2014, 11:50:28 PM
No problem :)
Title: Re: system user name wrong....how to change?
Post by: Learning on February 09, 2017, 10:37:21 PM
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".
Title: Re: system user name wrong....how to change?
Post by: LL-user on February 10, 2017, 12:07:36 AM
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".