Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python In Lunix
#4
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
Reply


Messages In This Thread
Python In Lunix - by Wizard - May-11-2017, 03:38 PM
RE: Python In Lunix - by nilamo - May-11-2017, 03:55 PM
RE: Python In Lunix - by Wizard - May-11-2017, 04:54 PM
RE: Python In Lunix - by nilamo - May-11-2017, 05:00 PM
RE: Python In Lunix - by Wizard - May-11-2017, 05:59 PM
RE: Python In Lunix - by wavic - May-11-2017, 07:52 PM
RE: Python In Lunix - by Wizard - May-11-2017, 09:07 PM
RE: Python In Lunix - by nilamo - May-11-2017, 09:15 PM
RE: Python In Lunix - by Ofnuts - May-12-2017, 09:52 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020