X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 10 Aug 2012 16:48:44 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: mkpasswd with domain gives The security database is corrupted error Message-ID: <20120810144844.GH7317@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Aug 9 22:37, Orion Poplawski wrote: > Fresh install of cygwin 1.7.16 on Windows Server 2008 R2. Trying to add my > domain users to /etc/passwd, but when I run mkpasswd I get (somewhat obfuscated): > > $ mkpasswd -l -d CO-RA > 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:: > TrustedInstaller:*:4294967294:4294967294:U-NT > SERVICE\TrustedInstaller,S-*:: > Administrator:unused:500:513:U-FONT3\Administrator,S-* > Guest:unused:501:513:U-FONT3\Guest,S-*:/home/Guest:/bin/bash > sgeadmin:unused:1000:513:U-FONT3\sgeadmin,S-*:/home/sgeadmin:/bin/bash > mkpasswd (374): [2247] The security database is corrupted. > > That message led me to trying to check the status to the secedit.sdb database > with esentutl but that checks out okay. The error message is a result of an error returned from a simple call to the Windows function NetUserEnum. I have no idea what's causing this. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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