Testers needed: New passwd/group handling in Cygwin

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Thu Feb 13 18:49:00 GMT 2014


On 2/13/2014 1:33 PM, Lord Laraby wrote:
> 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.
>

Corinna's email with a description of this entire mechanism recommends this
syntax:

>    CMD example:
>
>      net use corinna /comment:"<cygwin home=\"/home/foo\"/>"

Does that work for you?

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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



More information about the Cygwin mailing list