May-11-2017, 05:00 PM
That depends entirely on where the accounts are stored. You can either ask Linux nicely to tell you everyone with a local account, or you connect to your school's database and query some sort of users table.
https://askubuntu.com/a/410274 Wrote:To list all local users you can use:
cut -d: -f1 /etc/passwd
To list all users capable of authenticating (in some way), including non-local, see this reply: https://askubuntu.com/a/414561/571941