This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Testers needed: New passwd/group handling in Cygwin
- From: Lord Laraby <lord dot laraby at gmail dot com>
- To: Andrey Repin <cygwin at cygwin dot com>
- Date: Thu, 13 Feb 2014 13:33:55 -0500
- Subject: Re: Testers needed: New passwd/group handling in Cygwin
- Authentication-results: sourceware.org; auth=none
- References: <20140213143849 dot GH2246 at calimero dot vinschen dot de> <CAAXzdLVtMzdNDdm9-4puB1jJngjONS=Wbq3TXmDrJKDHcBJ5Ow at mail dot gmail dot com> <952874943 dot 20140213200700 at mtu-net dot ru>
Subject: Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header
declaration changes ?)
This would be a nice mechanism for typical windows home systems except for
the format of the cygwin tag that goes in the comment field. Home users
that utilize 'net user USERNAME "/comment:yadda yadda"' command cannot use
equal signs on the command line, and the entire string has to be quoted to
prevent angle brackets from messing with redirection. Equal signs are
stripped by CMD.exe and the nexted quotes are stripped as well.
Example: I entered the following at elevated cmd prompt,
C:\WINDOWS\system32>net user TestUser "/comment:<cygwin check="maybe"
then="okay>"
The command completed successfullly.
C:\WINDOWS\system32>net user TestUser
User name TestUser
Full name Test User
Comment <cygwin check=maybe then=okay>
...
The command completed successfullly.
So, I do not know how to get the information into the field in the proper
format.
--
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