This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] New package: getent-2.18.90-3


Corinna Vinschen wrote:
Hi folks,


I just uploaded getent-2.18.90-3.

getent is a Glibc tool which allows to fetch host, passwd, group,
protocol, and service information via a simple tool.

The -3 version introduces the ability to ask for passwd and group
entries via Windows username/groupname, using the "U-" prefix as
in Cygwin's pw_gecos field:

   $ getent passwd U-BUILTIN\\Administrator
   Administrators:*:544:544:,S-1-5-32-544::

You can skip the domain name.  In this case getent relies on the
default account name resolution order of the underlying LookupAccountName(*)
function

   $ getent passwd U-Administrator
   Administrators:*:544:544:,S-1-5-32-544::

Looks good.

What is the future way to map cygwin group names to windows group names? Unlike struct passwd, the windows name does not appear in struct group.

"getent wingroup CYGGROUP" with some help of a new cygwin_internal function?

Christian


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]