LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-12-2009, 08:30 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
A question about changing a user name...


I'm running Slackware 12.0. I have a user named glenn with a home dir /home/glenn and is using /bin/bash. I want to change the name from glenn to glen. What exactly do I need to do? I want to keep the same ownership on all the files that glenn owns.

1. Change user glenn to glen in /etc/passwd

2. Change user glenn to glen in /etc/group

3. mv /home/glenn /home/glen

Would that work?

Last edited by trist007; 11-18-2009 at 07:48 PM.
 
Old 11-12-2009, 08:49 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
I think these three steps should do it.
Also, it is worthwhile being in single user mode when doing this.

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
User friendly message to user on password changing tanveer Linux - General 2 02-24-2009 08:56 AM
changing user using su prasanta.choudhury Linux - Newbie 2 02-15-2006 08:38 PM
Changing a User carlosinfl Linux - General 11 11-29-2005 03:25 PM
User id (needs changing) podollb Linux - Software 2 05-15-2004 10:26 AM
Changing User Privilege question johnnygnote Linux - Software 6 11-13-2003 05:32 PM

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

All times are GMT -5. The time now is 12:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration