Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
43
rated 0 times [  43] [ 0]  / answers: 1 / hits: 72840  / 2 Years ago, thu, october 27, 2022, 4:24:49

I am given an old Ubuntu working system and the previous user had everything on his name so started turning it to my name as typing his name everywhere was bugging me. I tried:



$ usermod -l hussain darhamid


This turned the darhamid@darhamid:$ into hussain@darhamid:$



But I want hussain@darhamid:$ also changed to hussain@hussain. What should I do?



I am using ubuntu 12.04


More From » 12.04

 Answers
2

You have to change the computers hostname as well.



Edit the hostname file and replace the name



gksudo gedit /etc/hostname


also change the name in hosts



gksudo gedit /etc/hosts


Leave the other stuff there untouched.



For the username, it would be cleaner if you deleted the old user and created your new one.


[#34689] Thursday, October 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
horicgly

Total Points: 36
Total Questions: 126
Total Answers: 104

Location: Iceland
Member since Thu, Dec 1, 2022
1 Year ago
horicgly questions
Thu, Jun 23, 22, 15:02, 2 Years ago
Wed, Nov 10, 21, 00:19, 3 Years ago
Thu, May 5, 22, 14:58, 2 Years ago
;