find duplicated UID in the linux system

Ahmad Avatar

u can identify the duplicated uid in your system
this useful to identify if there some manipulation inside the users’ accounts

getent passwd|cut -d : -f3 |sort -n|uniq -d

it only returns the duplicated uid

btw: if it returns 0 😀 you know the rest

Enjoying this article?

Subscribe to get new posts delivered straight to your inbox. No spam, unsubscribe anytime.

No spam. Unsubscribe anytime.

You may also like

See All blog →

Leave a Comment

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

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.