Restore master.passwd from pwd.db and spwd.db
Hello, after some weird disk accident I have only pwd.db and spwd.db from my passwd files left. Passwd and master.passwd are missing. Couln't find them in /lost+found too. The system is running, but I can not add new users, of course (baybe only using pwd_mkdb -u ). Is there any way how to reconstruct master.passwd ? I was searching through the archives and dind't finde the answer. I was also trying to look into pwd_mkdb source, but ... Thanks in advance Leo Mrafko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Restore master.passwd from pwd.db and spwd.db
On Mon, 11 Sep 2006, michael johnson wrote: On 9/11/06, Leo Mrafko [EMAIL PROTECTED] wrote: Hello, after some weird disk accident I have only pwd.db and spwd.db from my passwd files left. Passwd and master.passwd are missing. Couln't find them in /lost+found too. The system is running, but I can not add new users, of course (baybe only using pwd_mkdb -u ). Is there any way how to reconstruct master.passwd ? I was searching through the archives and dind't finde the answer. I was also trying to look into pwd_mkdb source, but ... /var/backups contains a few files you may need. Yeah, really, thanks, I found there some backup. But I still wonder, if there is a possibily to reconstruct master passwd back from .db files, e.g. in case this backup is not up-to-date. I think it should be possible, but I don't knw how.. Thanks Leo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Restore master.passwd from pwd.db and spwd.db
On Mon, 11 Sep 2006, Chuck Swiger wrote: On Sep 11, 2006, at 12:14 PM, Leo Mrafko wrote: /var/backups contains a few files you may need. Yeah, really, thanks, I found there some backup. But I still wonder, if there is a possibily to reconstruct master passwd back from .db files, e.g. in case this backup is not up-to-date. I think it should be possible, but I don't knw how.. You should be able to use pwd_mkdb -p; see the manpage. Thanks, but sorry, this can only make passwd from master.passwd, AFAIK. Leo -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrade server from i386 - amd64 kernel ...
Yes, in fact it's pretty simple, quoting /usr/src/Makefile: # If TARGET_ARCH=arch (e.g. ia64, sparc64, ...) is specified you can # cross build world for other architectures using the buildworld target, # and once the world is built you can cross build a kernel using the # buildkernel target. Just read through /usr/src/Makefile and /usr/src/UPDATING. Leo. On Mon, 11 Sep 2006, Marc G. Fournier wrote: Just had a new 64bit server installed at the colo, but they accidentally installed a i386 ISO, instead of an AMD64 one ... is it possible to build / install an amd64 world, or do I have to re-install from a proper ISO first ? Thanks ... Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrade server from i386 - amd64 kernel ...
Yes, I've done it a few months ago.. Just read through the files.. As far as I remember you need to build amd64 world, then kernel, installworld, installkernel, reboot, voila, it works.. I had some small problems which I don't remember now, you will able to solve them for sure. Maybe don't forget to backup your data first ;-) On Mon, 11 Sep 2006, Marc G. Fournier wrote: 'k, I knew about cross-compiling, just wasn't sure if it was that simple to upgrade the system being cross-compiled onto ... thanks ... On Tue, 12 Sep 2006, Leo Mrafko wrote: Yes, in fact it's pretty simple, quoting /usr/src/Makefile: # If TARGET_ARCH=arch (e.g. ia64, sparc64, ...) is specified you can # cross build world for other architectures using the buildworld target, # and once the world is built you can cross build a kernel using the # buildkernel target. Just read through /usr/src/Makefile and /usr/src/UPDATING. Leo. On Mon, 11 Sep 2006, Marc G. Fournier wrote: Just had a new 64bit server installed at the colo, but they accidentally installed a i386 ISO, instead of an AMD64 one ... is it possible to build / install an amd64 world, or do I have to re-install from a proper ISO first ? Thanks ... Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]