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

Find the UID of a user:

id -u $USER_NAME

Change a user’s UID:

# usermod -u $NEW_UID $USER_NAME

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *