X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=L+ GXFi4uLJARHfLltqui9d77cS/Ak+rSS8HZSze9McKVpIitijPBPOdZWz7KRzDHqx ki9HUZGuPFKckWckewaMq5UpbqDtPfnR1fcPV4ZNPgi9iZYpBSoBWxuyvzzc9lro 67zQ3Cq3GybmSAp+OdjChvaxyxjLfTyoVmu517so8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=sa94gJuA mrao2JCWB1WzBtbh5dA=; b=sftWECFN4r7q2DPqjGt56wL9Ojt7IbPAzZk6ISeb n9b+CGNYEypbcJ4d+KmlzXERe6Qx8/Wc4jk+a622E9x1O52yvqirE4zEyf1TOV4N LF+x7acxrOwwg66yJE0kdtprId5nTUDVhblBDiPJ2GrlHhS6WD3rLob5qZR359ZB xrA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f180.google.com MIME-Version: 1.0 X-Received: by 10.140.38.75 with SMTP id s69mr4927573qgs.62.1392316435073; Thu, 13 Feb 2014 10:33:55 -0800 (PST) In-Reply-To: <952874943.20140213200700@mtu-net.ru> References: <20140213143849 DOT GH2246 AT calimero DOT vinschen DOT de> <952874943 DOT 20140213200700 AT mtu-net DOT ru> Date: Thu, 13 Feb 2014 13:33:55 -0500 Message-ID: Subject: Re: Testers needed: New passwd/group handling in Cygwin From: Lord Laraby To: Andrey Repin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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:net user TestUser User name TestUser Full name Test User Comment ... 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