From owner-freebsd-questions Wed Aug 11 19:52:34 1999 Delivered-To: freebsd-questions@freebsd.org Received: from granite.sentex.net (granite.sentex.ca [199.212.134.1]) by hub.freebsd.org (Postfix) with ESMTP id 55F70155E7 for ; Wed, 11 Aug 1999 19:52:31 -0700 (PDT) (envelope-from mike@sentex.net) Received: from ospf-wat.sentex.net (ospf-wat.sentex.net [209.167.248.81]) by granite.sentex.net (8.8.8/8.6.9) with SMTP id WAB14976; Wed, 11 Aug 1999 22:51:45 -0400 (EDT) From: mike@sentex.net (Mike Tancsa) To: cchrstns@sdln.net ("Corey A. Christians") Cc: questions@freebsd.org Subject: Re: master.passwd corruption Date: Thu, 12 Aug 1999 03:04:02 GMT Message-ID: <37b235e8.659193980@mail.sentex.net> References: In-Reply-To: X-Mailer: Forte Agent .99e/32.227 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 11 Aug 1999 17:34:15 -0400, in sentex.lists.freebsd.questions you wrote: >Apparently some of the passwords that are in the master.passwd file are = >corrupted >When I try to change the password of one of our users this error = >appears: > >passwd: /etc/master.passwd: corrupted entry >passwd: /etc/master.passwd: unchanged > >I tried running vipw and it didn't catch any errors. >I also tried pwd_mkdb -c and no errors were discovered > >I am currently running freebsd 2.8 on a pentium II 233. Are you sure there are no errant spaces or control characters ? Try the following mkdir /root/rtmp chmod og-rwx /root/rtmp strings /etc/master.passwd > /root/rtmp/m.bak diff /root/rtmp/m.bak master.passwd (dont forget to get rid of the /root/rtmp/m.bak) Also, make sure there are not 2 entries for the same user If you try chfn user does it work ? ---Mike Mike Tancsa (mdtancsa@sentex.net) Sentex Communications Corp, Waterloo, Ontario, Canada "Who is this 'BSD', and why should we free him?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message