LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-30-2004, 04:00 PM   #1
linuxidiot2
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Unhappy how to change UID


hi, I'm new
I don't like my user ID, is there any way I can change it?
 
Old 07-30-2004, 04:17 PM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Do you mean the numeric id? Or the textual username? Regardless, either can be modified by editing the /etc/passwd and /etc/shadow files.
If you're editing the numeric id, you will have to chown on all files belonging the old id to the new id or you may find yourself unable to access some of your own stuff.
 
Old 07-30-2004, 04:17 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
As root, edit
/etc/passwd
/etc/shadow
and change <stupidID> to <betterID>
and
mv /home/<stupidID> /home/<betterID>


Cheers,
Tink
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change uid group id mfrangos79 Linux - General 1 11-07-2005 07:19 PM
Apache: suPHP: how to change UID value? murr4y Linux - Software 1 06-12-2005 04:10 PM
How can I change a user's uid and gid? homesp Debian 2 05-31-2005 02:39 PM
After UID change can no longer ftp meshking Linux - General 4 07-13-2004 02:44 AM
Change UID of process/Privileged ports syntac Linux - General 1 04-17-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:54 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