Rename Account

Posted on 1999-07-06
Medium Priority
Last Modified: 2010-04-20
I have an account called pras on my linux m/c
Now i want to change my account name to prask
How do i change my account name from pras to prask so that no data is lost.
Question by:LotsOfQuestions
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 10

Accepted Solution

rbr earned 20 total points
ID: 1635081
You must be super-user to to this
edit in the /etc directory the file
shadow (if you have one)

LVL 10

Expert Comment

ID: 1635082
Or try usermod
man usermod

usermod -l prask pras


Expert Comment

ID: 1635083
You gotta replace 'pras' by 'prask' on the following files (if you have them):


For this operation you can use 'vi', by typing:

vi /dir/file

And inside the file you can do the command:


This will assure every appearance of 'pras' on the file is changed to 'prask'. But if you just use your favourite text editor is ok.

And you'll also have to rename your mailbox on  /var/spool/mail:

cd /var/spool/mail
mv pras prask

Not to mention your home directory:

cd /home
mv pras prask

Note that the above instructions are for the standard Linux resources... If you have any other application you'll have to change them as well...

Good luck!



Featured Post

A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question