LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-30-2003, 02:46 AM   #1
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Rep: Reputation: 15
changing users name


Is there a magical way to change a users name?
I run Debian.
 
Old 08-30-2003, 03:16 AM   #2
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
will "usermod -l <new-name>" do ?
 
Old 08-30-2003, 04:38 AM   #3
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
If that is the way it is done than it will do.
 
Old 08-30-2003, 04:47 AM   #4
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
I just read usermod's man pages and I'm not sure it will work. I mean aren't there other places your'username is used besides login and home directory? I mean what about groups.... or do you have to do '-G groups,names,seperated,only,by,a,comma'?
 
Old 08-30-2003, 04:50 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
That's the correct way, and it should work throughout regardless of what file you are looking in...

Name = UID

Most files use the UID anyway, so you can change your name to whatever, it's sorta like an alias.

For those that use the username (can't think of one off the top of my head) you may want to manually edit them. However, the groups file shouldn't...

Cool
 
Old 08-30-2003, 05:02 AM   #6
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
Thank you sir 'C'!
 
Old 08-30-2003, 03:17 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You're welcome, I just clarified though, jalal is the one who deserves the Thanks

Cool
 
  


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
changing a users pwd ALInux Linux - Newbie 1 11-07-2005 12:44 PM
changing max users aquatambourine Linux - Newbie 4 10-02-2005 06:33 PM
changing a users rights newusermike Linux - Newbie 2 08-11-2005 08:23 PM
Changing all the users settings squirellplaying Linux - Newbie 1 10-30-2004 06:46 AM
Changing a users shell bij368 Linux - General 2 07-02-2001 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 PM.

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