Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 1999 03:04:02 GMT
From:      mike@sentex.net (Mike Tancsa)
To:        cchrstns@sdln.net ("Corey A. Christians")
Cc:        questions@freebsd.org
Subject:   Re: master.passwd corruption
Message-ID:  <37b235e8.659193980@mail.sentex.net>
In-Reply-To: <MAIL001301bee440$fa803a60$5dfc34cc@sdln.net>
References:  <MAIL001301bee440$fa803a60$5dfc34cc@sdln.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37b235e8.659193980>