How to find and change a user's UID on Linux?

How to find and change a user's UID on Linux?

asked Sep 11, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

Find the UID of a user:

id -u $USER_NAME

Change a user's UID:

# usermod -u $NEW_UID $USER_NAME
answered Sep 11, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...