SyntaxFix
Write A Post
Hire A Developer
Questions
This works in Linux. Not sure how it behaves in other *nixes.
getent passwd "${OTHER_USER}"|cut -d\: -f 6