LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2010, 09:54 PM   #1
hewjr1000
LQ Newbie
 
Registered: May 2010
Posts: 29

Rep: Reputation: 0
Change name


See screenshot, what I need to do is change the name "henry" to 'Henry"

is this possible.

Henry
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	33
Size:	64.7 KB
ID:	5237  
 
Old 11-18-2010, 10:02 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
I've never done this myself, this site explains the command.

http://www.cyberciti.biz/faq/howto-c...-user-name-id/
 
1 members found this post helpful.
Old 11-19-2010, 08:33 AM   #3
hewjr1000
LQ Newbie
 
Registered: May 2010
Posts: 29

Original Poster
Rep: Reputation: 0
No Luck.

What I am trying to do is capitalize the name "henry" on the folder and in the left pane.

Henry
 
Old 11-19-2010, 08:41 AM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Yes it can be done. Keep in mind that this is a home directory. If you change the name then you will have to tell Linux that this account now has a home directory of /home/Henry.

There are various ways to do this. Let's use the command line.

Open a terminal window and enter these commands:
Code:
sudo usermod -d /home/Henry henry
sudo mv /home/henry /home/Henry
Now log off and log back on. That will reset your environment variables to the new home directory.

Last edited by stress_junkie; 11-19-2010 at 08:44 AM.
 
Old 11-19-2010, 09:34 AM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
What about owner of all ~ files and directories? You probably should change it too.
 
1 members found this post helpful.
Old 11-19-2010, 11:52 AM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by Mr. Alex View Post
What about owner of all ~ files and directories? You probably should change it too.
We're not changing the account UID or the account name, just the home directory. The file ownership is maintained by UID. The UID isn't going to change so the file ownership doesn't need to change. We could even change the account name from henry to Henry and we still would not have any file ownership problems.

Good attention to detail, though, Mr. Alex. That's why I marked your post as helpful even though it was not correct. It is very important to think things through in system administration. You clearly ARE considering the consequences of a change to an account. That is very good.


Last edited by stress_junkie; 11-19-2010 at 12:03 PM.
 
Old 11-19-2010, 12:09 PM   #7
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Actually, you aren't even changing the name, just the home directory. The account name is still the same (henry) so the files will still be owned by henry. If you change the name henry to Henry in /etc/passwd /etc/group and /etc/shadow (also can be done through "usermod -l" and "groupmod -n"), THEN the names will be changed, but like stress_junkie said, if the UID stays the same, it won't matter.

HTH

Forrest
 
Old 11-19-2010, 12:43 PM   #8
hewjr1000
LQ Newbie
 
Registered: May 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Stress Junkie, sorry for the delay in responding, however I mus have done something wrong, when I logged back in I was locked out of my system.

The messages required me to delete or not, and of course I chose delete.

I had to fresh install and I just got back up.

Henry

Last edited by hewjr1000; 11-19-2010 at 12:45 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WEP Encryption Key:26chars_what choices must change in ubuntu 9.10 for the new change lse123 Linux - Newbie 1 03-02-2010 02:38 AM
is there a linux 'change' prog (like old dos 1) for quick change of text in files? johnemac General 2 06-15-2009 11:22 AM
LVM - what if disk partition change causes the PV device file to change? catkin Linux - General 9 12-19-2008 06:43 PM
Cannot Change GNOME Menu Items to add/change Item for Mozilla 1.2 After Upgrade metoome General 0 03-27-2004 12:19 AM
Cannot Change GNOME Menu Items to add/change Item for Mozilla 1.3 After Upgrade SForsgren Linux - General 4 03-26-2004 11:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration