Date: Sun, 9 Sep 2001 14:19:04 -0400 (EDT) From: Joe Clarke <marcus@marcuscom.com> To: Nathan Vingoe <nathan_vingoe@hotmail.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Passwd file corupt Message-ID: <20010909141737.B29548-100000@shumai.marcuscom.com> In-Reply-To: <F105P8hTugenpxqmqhh0000cf57@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In single user mode, do: fsck -y / Then: mount -uw / Then, vipw and save the file. That will recreate /etc/passwd, pwd.db, and spwd.db. Joe On Sun, 9 Sep 2001, Nathan Vingoe wrote: > Help > > While adding a new user to my server, It crashed.. > > we have got it all coming back up again, but it seems the passwd file in the > /etc folder is now corrup. > > we can therfore only log into single user mode. > > how do we > > 1. get it so we can write to the disk, as it seems to be in read only mode. > > 2. regenerate the passwd file or what do we need to re generste? - we have > got the master.passwd and it seems intact, although, I have never been in > there before.. > > regards > > Nathan > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > 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?20010909141737.B29548-100000>