What is the command that allows one to generate a list of all the usernames of authorised users on a Linux server? I have tried
- getent passwd | cut -d : -f 1 | xargs groups
- less /etc/passwd
grep 'x:0:' /etc/passwd and
- grep "/bin/bash" /etc/passwd | cut -d: -f1
but none of the above gives me exactly what I want, which is simply a list of usernames.
Any help would be greatly appreciated