On Thu, 14 Apr 2016 10:14:14 +0200, J. Roeleveld wrote:
> > cat /etc/passwd ;-)
> >
> > Or if you want to get clever and give just a list of usernames
> >
> > awk -F: '{print $1}' /etc/passwd
>
> This doesn't work when using LDAP authentication or similar:
>
> nas ~ # cat /etc/passwd | grep joost
> nas ~ # getent passwd | grep joost
> joost:x:1000:1000:System User:/home/joost:/bin/bash
> nas ~ # I know, but for Dale's purposes I knew it would be fine... and I didn't need to double-check the use of cat :) -- Neil Bothwick Master of all I survey (at the moment, empty pizza boxes)
pgp9v4IbWa9mf.pgp
Description: OpenPGP digital signature

