X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DATE_IN_PAST_12_24,TW_MK X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Message-ID: <4C563F26.8050706@cygwin.com> Date: Sun, 01 Aug 2010 23:44:38 -0400 From: "Larry Hall \(Cygwin\)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: 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> <4C575282 DOT 6090805 AT tlinx DOT org> In-Reply-To: <4C575282.6090805@tlinx.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 8/2/2010 7:19 PM, Linda Walsh wrote: > 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 >> ), >> 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 >> >> > > > 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? It's possible, sure. I expect it's pretty obvious where you might want to make such a change in mkpasswd.c if you're so inclined. > 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'm sure. The APIs in use aren't only for Cygwin. I don't know of any utility that you can use, off the top of my head, that would provide better insight than debugging through the code. > 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. Perhaps it's time to try again. In this case anyway, you wouldn't need to build more than 'mkpasswd'. Shouldn't be too hard if you're used to building any software. Sounds like you've done some of this before but I may be misinterpreting. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ 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