Wednesday, November 25, 2009

How To:Linux change or rename user name and UID?

Task: Change username from tom to jerry

Type usermod command as follows:
# id tom
# usermod -l jerry tom
# id jerry
# id tom

Task: Change user tom UID from 5001 to 10000

Type usermod command as follows
# id tom
# usermod -u 10000 tom
# id tom

NOTE:Original source ...

No comments:

Post a Comment