<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Linux:  How do you rename a user account in linux?</title>
	<atom:link href="http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/</link>
	<description>Enterprise level solutions, LAMP, Linux, Apache, MySQL, PHP, Perl, Windows, Cache, Optimization</description>
	<lastBuildDate>Tue, 24 Jan 2012 09:44:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rishi</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-1023</link>
		<dc:creator>rishi</dc:creator>
		<pubDate>Wed, 11 May 2011 16:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-1023</guid>
		<description>How to reset the root password in linux:

http://reddragon-linux.blogspot.com/2011/05/linux-resetting-root-user-password.html</description>
		<content:encoded><![CDATA[<p>How to reset the root password in linux:</p>
<p><a href="http://reddragon-linux.blogspot.com/2011/05/linux-resetting-root-user-password.html" rel="nofollow">http://reddragon-linux.blogspot.com/2011/05/linux-resetting-root-user-password.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alaakhalaf</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-943</link>
		<dc:creator>alaakhalaf</dc:creator>
		<pubDate>Mon, 14 Jun 2010 01:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-943</guid>
		<description>Hallo all
I think firs you should install package &#039;libuser&#039; using this command
sudo apt-get install libuser
and then execute this command
sudo lusermod -l newname oldname</description>
		<content:encoded><![CDATA[<p>Hallo all<br />
I think firs you should install package &#8216;libuser&#8217; using this command<br />
sudo apt-get install libuser<br />
and then execute this command<br />
sudo lusermod -l newname oldname</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: noiamsamiam</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-916</link>
		<dc:creator>noiamsamiam</dc:creator>
		<pubDate>Thu, 21 Jan 2010 18:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-916</guid>
		<description>@kopper
Your instructions were a big help for me to rename my user and move my home folder on 9.10

Using kopper&#039;s instructions my approach was this for Ubuntu 9.10 

1. Login to your user account 
2. Go to Menu System &gt; Administration &gt; Users and Groups
3. Unlock by clicking on keys &quot;Unlock to make changes&quot;
4. Enter your user account password when prompted 
5. User settings now unlocked &gt; Select Add User
6. In Basic Settings tab define you new username for your admin account and real name (This is the friendly name you are shown in the Ubuntu 9.10 login screen
7. Select the profile drop down box and select administrator
8. Create your new password (something decent since this account has more privileges than the standard desktop account)
9. Logout of your current account
10. At Ubuntu login screen login to the newly created admin account
11. Open a terminal window from Menu Applications &gt;  Accessories &gt; Terminal
12. type command sudo -i to get root access
13. execute command killall -u oldaccountusername
14. execute command id oldaccount username
15. execute command usermod -l newaccountusername oldaccountusername
16. execute command groupmod -n newaccountusername oldaccountusername
17. execute command usermod -d /home/newaccountusername -m newaccountusername
18. execute usermod -c &quot;New User Account Friendly Name for Logon Screen&quot; newaccountusername
19. execute id new
20. execute ls /home/ and you should see a new home folder matching the new username that you changed from the old username and if you ls /home/newaccountusername you should see the all the files and folders that were in the home folder for your oldaccountusername
21. close the terminal window
22. logout of the adminuser account on Ubuntu
23. Ubuntu login screen should now show only the admin account and your changed useraccountname.
24. Login in to this user account using your old password from the same account before it was renamed.
25. You should now be logged in to your account under the new username and have access to all the same files, settings and applications as the account before it was renamed.

I&#039;m sure there is a quicker approach to achieve this but this is what worked for me. 

Thanks again to kopper who contributed the nuts and bolts of getting this working</description>
		<content:encoded><![CDATA[<p>@kopper<br />
Your instructions were a big help for me to rename my user and move my home folder on 9.10</p>
<p>Using kopper&#8217;s instructions my approach was this for Ubuntu 9.10 </p>
<p>1. Login to your user account<br />
2. Go to Menu System &gt; Administration &gt; Users and Groups<br />
3. Unlock by clicking on keys &#8220;Unlock to make changes&#8221;<br />
4. Enter your user account password when prompted<br />
5. User settings now unlocked &gt; Select Add User<br />
6. In Basic Settings tab define you new username for your admin account and real name (This is the friendly name you are shown in the Ubuntu 9.10 login screen<br />
7. Select the profile drop down box and select administrator<br />
8. Create your new password (something decent since this account has more privileges than the standard desktop account)<br />
9. Logout of your current account<br />
10. At Ubuntu login screen login to the newly created admin account<br />
11. Open a terminal window from Menu Applications &gt;  Accessories &gt; Terminal<br />
12. type command sudo -i to get root access<br />
13. execute command killall -u oldaccountusername<br />
14. execute command id oldaccount username<br />
15. execute command usermod -l newaccountusername oldaccountusername<br />
16. execute command groupmod -n newaccountusername oldaccountusername<br />
17. execute command usermod -d /home/newaccountusername -m newaccountusername<br />
18. execute usermod -c &#8220;New User Account Friendly Name for Logon Screen&#8221; newaccountusername<br />
19. execute id new<br />
20. execute ls /home/ and you should see a new home folder matching the new username that you changed from the old username and if you ls /home/newaccountusername you should see the all the files and folders that were in the home folder for your oldaccountusername<br />
21. close the terminal window<br />
22. logout of the adminuser account on Ubuntu<br />
23. Ubuntu login screen should now show only the admin account and your changed useraccountname.<br />
24. Login in to this user account using your old password from the same account before it was renamed.<br />
25. You should now be logged in to your account under the new username and have access to all the same files, settings and applications as the account before it was renamed.</p>
<p>I&#8217;m sure there is a quicker approach to achieve this but this is what worked for me. </p>
<p>Thanks again to kopper who contributed the nuts and bolts of getting this working</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kopper</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-896</link>
		<dc:creator>kopper</dc:creator>
		<pubDate>Fri, 13 Nov 2009 06:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-896</guid>
		<description>would this be enough 

killall -u old
id old
usermod -l new old
groupmod -n new old
usermod -d /home/new -m new
usermod -c “New Real Name” new
id new</description>
		<content:encoded><![CDATA[<p>would this be enough </p>
<p>killall -u old<br />
id old<br />
usermod -l new old<br />
groupmod -n new old<br />
usermod -d /home/new -m new<br />
usermod -c “New Real Name” new<br />
id new</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eu</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-866</link>
		<dc:creator>Eu</dc:creator>
		<pubDate>Thu, 20 Aug 2009 21:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-866</guid>
		<description>Sorry but this article is misleading, first says theres no way to change the username in linux and then crosses that, then gives a manual procedure which is absolutely not pratical because all of it can be done with a single linux command... i suspect that simply  replacing all the text in this article with: &quot;usermod -l old_name new_name&quot; would do us all a great favor!</description>
		<content:encoded><![CDATA[<p>Sorry but this article is misleading, first says theres no way to change the username in linux and then crosses that, then gives a manual procedure which is absolutely not pratical because all of it can be done with a single linux command&#8230; i suspect that simply  replacing all the text in this article with: &#8220;usermod -l old_name new_name&#8221; would do us all a great favor!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan L. Cerezo</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-783</link>
		<dc:creator>Johan L. Cerezo</dc:creator>
		<pubDate>Thu, 23 Oct 2008 03:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-783</guid>
		<description>Additional info, If your linux box is a mail server, you must also change the name of the file found in /var/spool/mail. Example from above joe to john. So you can still retrieve your old mail found in your inbox using thunderbird, outlook(client) and alike.</description>
		<content:encoded><![CDATA[<p>Additional info, If your linux box is a mail server, you must also change the name of the file found in /var/spool/mail. Example from above joe to john. So you can still retrieve your old mail found in your inbox using thunderbird, outlook(client) and alike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sapphirecat</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-685</link>
		<dc:creator>sapphirecat</dc:creator>
		<pubDate>Sat, 10 May 2008 13:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-685</guid>
		<description>I&#039;d still only recommend this for a new user, not one who is established. Last time I did this, I had a number of problems with things which had hardcoded the equivalent of /home/joe/... into their configuration. (Mozilla in particular. I had to start afresh there, and it was painful. But maybe they&#039;ve fixed that in the intervening 5 years.)</description>
		<content:encoded><![CDATA[<p>I&#8217;d still only recommend this for a new user, not one who is established. Last time I did this, I had a number of problems with things which had hardcoded the equivalent of /home/joe/&#8230; into their configuration. (Mozilla in particular. I had to start afresh there, and it was painful. But maybe they&#8217;ve fixed that in the intervening 5 years.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny Walia</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-684</link>
		<dc:creator>Sunny Walia</dc:creator>
		<pubDate>Sat, 10 May 2008 04:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-684</guid>
		<description>Thanks for the great information Stoner.</description>
		<content:encoded><![CDATA[<p>Thanks for the great information Stoner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoner</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-683</link>
		<dc:creator>Stoner</dc:creator>
		<pubDate>Fri, 09 May 2008 13:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-683</guid>
		<description>I left out an important clause from my last paragraph. You need to find and change ownership of files if you change the UID or GID numbers for a user.</description>
		<content:encoded><![CDATA[<p>I left out an important clause from my last paragraph. You need to find and change ownership of files if you change the UID or GID numbers for a user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoner</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-682</link>
		<dc:creator>Stoner</dc:creator>
		<pubDate>Fri, 09 May 2008 13:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-682</guid>
		<description>The comment from &#039;she&#039; is correct. The usermod command will let you do just about everything. If you find that you must edit the passwd or group files, you should never use vi to edit them. Instead, you should use vipw and vigr for that. After editing, they will prompt you to edit the shadow files as well. They do a few others things, like making sure the temporary file used is more secure from prying eyes and general naughtiness.

Another thing to note, if the user created files or directories outside of their home directory before the username changed, you&#039;ll need to find those files and change the ownership. A few that spring to mind are mail in the /var/mail directory, crontab files and at jobs.</description>
		<content:encoded><![CDATA[<p>The comment from &#8217;she&#8217; is correct. The usermod command will let you do just about everything. If you find that you must edit the passwd or group files, you should never use vi to edit them. Instead, you should use vipw and vigr for that. After editing, they will prompt you to edit the shadow files as well. They do a few others things, like making sure the temporary file used is more secure from prying eyes and general naughtiness.</p>
<p>Another thing to note, if the user created files or directories outside of their home directory before the username changed, you&#8217;ll need to find those files and change the ownership. A few that spring to mind are mail in the /var/mail directory, crontab files and at jobs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny Walia</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-681</link>
		<dc:creator>Sunny Walia</dc:creator>
		<pubDate>Fri, 09 May 2008 12:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-681</guid>
		<description>Yeah as I updated the post, there is a utility:  usermod</description>
		<content:encoded><![CDATA[<p>Yeah as I updated the post, there is a utility:  usermod</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: she</title>
		<link>http://crazytoon.com/2008/05/09/linux-how-do-you-rename-a-user-account-in-linux/comment-page-1/#comment-680</link>
		<dc:creator>she</dc:creator>
		<pubDate>Fri, 09 May 2008 12:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=69#comment-680</guid>
		<description>hmm the linux tools should take care of that IMO</description>
		<content:encoded><![CDATA[<p>hmm the linux tools should take care of that IMO</p>
]]></content:encoded>
	</item>
</channel>
</rss>

