[Gambas-user] getting a list of users

Jason Curl j.m.curl at ...17...
Sat Nov 27 12:19:39 CET 2004


On most systems, isn't /etc/passwd available for reading? One could iterate
through this and check that the login shell is actually valid for a valid
login account.

I'm not sure if the passwd file is always kept in /etc though.

-----Original Message-----
From: gambas-user-admin at lists.sourceforge.net
[mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Benoit
Minisini
Sent: Thursday, 25 November 2004 11:21
To: gambas-user at lists.sourceforge.net
Subject: Re: [Gambas-user] getting a list of users


On Thursday 25 November 2004 10:53, Technoferret wrote:
> Could anyone help me with what is probably a simple problem.
>
> I need to populate a combobox with a list of all the USER names that
> have a login account on the system but for some reason how I get this
> list has deserted me.
>
> Cheers
> Dave

The quick way but not the good way:

MyComboBox.List = Dir("/home").Join("\n") & "\nroot"

-- 
Benoit Minisini
mailto:gambas at ...1...


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list