You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to list the users "available" on a system, and get their home dirs. This is not available on heim, since heim::host::users() only lists currently logged in users
On windows, this is possible using NetUserEnum
On Linux, /etc/passwd looks suited, unless there is a better API.
I'm not sure yet what "available" means. Should we also list "special" users (SYSTEM,LOCAL_NETWORK, etc.) ? What should we list on a machine that is part of a Windows domain that has local and domain users?
I might try to implement something, but feel free to give your opinion on this first :-)
The text was updated successfully, but these errors were encountered:
Hmm, NetUserEnum does not return the profile home dir (or rather, it does but it's an empty string, according to Manage this PC > Local Users and groups > Users > > double click > Profile tab > Home folder)...
I'd like to list the users "available" on a system, and get their home dirs. This is not available on heim, since
heim::host::users()
only lists currently logged in usersNetUserEnum
/etc/passwd
looks suited, unless there is a better API.I'm not sure yet what "available" means. Should we also list "special" users (
SYSTEM,
LOCAL_NETWORK
, etc.) ? What should we list on a machine that is part of a Windows domain that has local and domain users?I might try to implement something, but feel free to give your opinion on this first :-)
The text was updated successfully, but these errors were encountered: