You are Here:
Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.



system user name wrong....how to change?

Author (Read 3805 times)

0 Members and 1 Guest are viewing this topic.

system user name wrong....how to change?
« on: December 12, 2014, 11:28:35 PM »
 

Monkeyman

  • Forum Regular
  • ***
  • 237
    Posts
  • Country: us
  • Reputation: 14
  • Jesus Freak

  • Linux Lite: 2.8 64bit

  • CPU: AMD Phenom II (old skool!)

  • MEMORY: 4Gb

  • VIDEO CARD: GeForce 450
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?
« Reply #1 on: December 12, 2014, 11:43:40 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7071
    Posts
  • Country: nz
  • Reputation: 662
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
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?
« Reply #2 on: December 12, 2014, 11:50:04 PM »
 

Monkeyman

  • Forum Regular
  • ***
  • 237
    Posts
  • Country: us
  • Reputation: 14
  • Jesus Freak

  • Linux Lite: 2.8 64bit

  • CPU: AMD Phenom II (old skool!)

  • MEMORY: 4Gb

  • VIDEO CARD: GeForce 450
Thank you very much!  Worked like a charm!
 

Re: system user name wrong....how to change?
« Reply #3 on: December 12, 2014, 11:50:28 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7071
    Posts
  • Country: nz
  • Reputation: 662
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
No problem :)
 

Re: system user name wrong....how to change?
« Reply #4 on: February 09, 2017, 10:37:21 PM »
 

Learning

  • New to Forums
  • *
  • 20
    Posts
  • Country: us
  • Reputation: 4
  • Linux Lite Member

  • Linux Lite: 3.2 32bit

  • CPU: AMD Athlon(tm) X2 Dual-Core QL-65

  • MEMORY: 3Gb

  • VIDEO CARD: RS780MC Mobility Radeon HD 3100
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?
« Reply #5 on: February 10, 2017, 12:07:36 AM »
 

LL-user

  • I come here a lot
  • *****
  • 447
    Posts
  • Country: 00
  • Reputation: 213
  • Linux Lite Member

  • Linux Lite: 2.8 64bit
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".
 


Tags:
 


Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.