delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/02/19:19:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,TW_MK,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C575282.6090805@tlinx.org>
Date: Mon, 02 Aug 2010 16:19:30 -0700
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: mkpasswd (434): [31] A device attached to the system is not functioning.
References: <4C527BD1 DOT 50707 AT tlinx DOT org> <4C52D4A4 DOT 1030002 AT cygwin DOT com>
In-Reply-To: <4C52D4A4.1030002@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 7/30/2010 6:33 AM, Larry Hall (Cygwin) wrote:
> On 7/30/2010 3:14 AM, Linda Walsh wrote:
>> This is still a problem.
>>
>> /bin>  mkpasswd
>> SYSTEM:*:18:544:,S-1-5-18::
>> LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19::
>> NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20::
>> Administrators:*:544:544:,S-1-5-32-544::
>> mkpasswd (434): [31] A device attached to the system is not functioning.
>> /bin>
> 
> Looking at the code (which you can find here 
> <http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/utils/mkpasswd.c?rev=1.54&content-type=text/x-cvsweb-markup&cvsroot=src>), 
> it appears either NetUserGetInfo() or NetUserEnum()
> is failing.  Seems like a strange error message but perhaps it makes more
> sense in context.  Since I cannot reproduce it, I cannot be of more help.
> 
>> Note:
>> mkgroup doesn't give an error message.  Why mkpasswd does and mkgroup does
>> not might be pertinent -- don't they use similar mechanisms?  What do they do
>> different?
> 
> Because they are looking for different information.  See 
> <http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/utils/mkgroup.c?rev=1.47&content-type=text/x-cvsweb-markup&cvsroot=src>
> 


There's lots of places where error results are printed out without saying what call they are referring to.  Since I'm not the only one with this problem, is it possible to have error messages also mention what call returned the error?  - maybe print out any useful (human interpretable) parameters?  

Or are there other programs in windows that would try to print out the same information?

I.e. say some variant of the "net" or "netsh" commands"?  On linux, I can try debugging with the 'net' command and it's various outputs, but I don't know what I'd use here to do the same.  

I've tried building things from cygwin before and never had any luck just satisfying the dependencies, so that's been a non-starter for me.



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019