password failure- after mergmaster
OOOPSS- I got mergemaster to run- but now that the system restarted the root password and my password are invalid- I can ONLY start in single user mode- I still do have level 0 dump of 5.4 on my network is this my only option ? Jean-Paul Natola Network Administrator Information Technology Family Care International 588 Broadway Suite 503 New York, NY 10012 Phone:212-941-5300 xt 36 Fax: 212-941-5563 Mailto: [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: password failure- after mergmaster
On Monday 09 July 2007 04:06:01 pm Jean-Paul Natola wrote: OOOPSS- I got mergemaster to run- but now that the system restarted the root password and my password are invalid- I can ONLY start in single user mode- I still do have level 0 dump of 5.4 on my network is this my only option ? It's always wise to back up /etc before running mergemaster to cover just this type of mistake. In this case I'm guessing you replaced your /etc/master.passwd with the default one. From single-user mode, set the root password using the passwd utility. You will probably need to re-add your user account and any others that aren't part of the system default. I would grab /etc/master.passwd from your backup and do a line-by-line comparison with the file currently installed on your system. When re-adding users, be sure to use the same UID's and GID's so that file permissions will be correct. See man pw for details. Alternatively, you could replace /etc/master.passwd with the copy from your backup and run mergemaster again. This time pay attention and actually merge the file. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
On Mon, Jul 09, 2007 at 04:06:01PM -0400, Jean-Paul Natola wrote: OOOPSS- I got mergemaster to run- but now that the system restarted the root password and my password are invalid- I can ONLY start in single user mode- You let mergemaster clobber the password file. So in single user, mount -a, then use vipw to recreate your accounts in the password database. On exit from vipw use passwd to set the passwords. -- David Kelly N4HHE, [EMAIL PROTECTED] Whom computers would destroy, they must first drive mad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
On Jul 9, 2007, at 1:25 PM, Peter Boosten wrote: You let mergemaster clobber the password file. So in single user, mount -a, then use vipw to recreate your accounts in the password database. On exit from vipw use passwd to set the passwords. Having read this I must admit that it's a complete mystery to me why mergemaster would touch your password file at all... Because sometimes new versions of the OS come with new built-in user accounts, which need to be added to the existing passwd or groups databases somehow? -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
At 03:06 PM 7/9/2007, Jean-Paul Natola wrote: OOOPSS- I got mergemaster to run- but now that the system restarted the root password and my password are invalid- I can ONLY start in single user mode- I still do have level 0 dump of 5.4 on my network is this my only option This really sounds like you did an upgrade that went bad. If you did upgrade you can do a restore from your dump, and try again. Or just check or reset the root password in single user. What error are you getting going into multi-user? -Derek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
David Kelly wrote: On Mon, Jul 09, 2007 at 04:06:01PM -0400, Jean-Paul Natola wrote: OOOPSS- I got mergemaster to run- but now that the system restarted the root password and my password are invalid- I can ONLY start in single user mode- You let mergemaster clobber the password file. So in single user, mount -a, then use vipw to recreate your accounts in the password database. On exit from vipw use passwd to set the passwords. Having read this I must admit that it's a complete mystery to me why mergemaster would touch your password file at all... /me puzzled... Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David Kelly wrote: On Mon, Jul 09, 2007 at 04:06:01PM -0400, Jean-Paul Natola wrote: OOOPSS- I got mergemaster to run- but now that the system restarted the root password and my password are invalid- I can ONLY start in single user mode- You let mergemaster clobber the password file. So in single user, mount -a, then use vipw to recreate your accounts in the password database. On exit from vipw use passwd to set the passwords. Note that there will be a backup copy of the master.passwd file in /var/backups/master.passwd.bak -- the will be possibly more than one backup copy in that directory. These are created by the nightly periodic script: /etc/periodic/daily/200.backup-passwd which is enabled by default. As these run overnight the backed-up copy should pre-date your adventures with mergemaster. Verify that the contents are sensible, then copy it back to /etc/master.passwd and run pwd_mkdb(8) to generate /etc/passwd and /etc/pwd.db from it. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGkqhX8Mjk52CukIwRCFanAKCF+mkgAZoNVE1fbjHU3HrC/LQIsACfU5tz wb0lxphVnCmkHb7Zd79npFc= =w67I -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
On Mon, Jul 09, 2007 at 01:29:44PM -0700, Chuck Swiger wrote: On Jul 9, 2007, at 1:25 PM, Peter Boosten wrote: Having read this I must admit that it's a complete mystery to me why mergemaster would touch your password file at all... Because sometimes new versions of the OS come with new built-in user accounts, which need to be added to the existing passwd or groups databases somehow? Yes, exactly. Have to *merge* the changes into /etc/master.passwd rather than brute force overwrite. Notice the difference from my first post in this thread, the file which was clobbered is /etc/master.passwd, not just /etc/passwd which is a dummy file generated from master.passwd. In single user he can mount -a to get all the filesystems mounted read/write, then extract /etc/master.passwd file from his level 0 dump. But once again it needs to be diff'ed against the new version written by mergemaster to see why mergemaster changed it. Then the password databases need to be rebuilt. The easiest way (and only way I remember without manpage surfing) is to run vipw and trivially change the master password file. On exit vipw rebuilds the password databases with pwd_mkdb(8) (I had to look that up). -- David Kelly N4HHE, [EMAIL PROTECTED] Whom computers would destroy, they must first drive mad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: password failure- after mergmaster
On Mon, Jul 09, 2007 at 01:29:44PM -0700, Chuck Swiger wrote: On Jul 9, 2007, at 1:25 PM, Peter Boosten wrote: Having read this I must admit that it's a complete mystery to me why mergemaster would touch your password file at all... Because sometimes new versions of the OS come with new built-in user accounts, which need to be added to the existing passwd or groups databases somehow? Yes, exactly. Have to *merge* the changes into /etc/master.passwd rather than brute force overwrite. Notice the difference from my first post in this thread, the file which was clobbered is /etc/master.passwd, not just /etc/passwd which is a dummy I'M DONE now- now I cant even boot into safe or single user mode It keeps asking me to enter full pathname of shell or RETURN for /bin/sh I hit enter and I see the same message again , and again , and again and again ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
On Jul 9, 2007, at 2:44 PM, Jean-Paul Natola wrote: Because sometimes new versions of the OS come with new built-in user accounts, which need to be added to the existing passwd or groups databases somehow? Yes, exactly. Have to *merge* the changes into /etc/master.passwd rather than brute force overwrite. Notice the difference from my first post in this thread, the file which was clobbered is /etc/master.passwd, not just /etc/passwd which is a dummy I'M DONE now- now I cant even boot into safe or single user mode It keeps asking me to enter full pathname of shell or RETURN for / bin/sh I hit enter and I see the same message again , and again , and again and again I have two thoughts for you: One, FreeBSD should be a little easier to update, as the instructions for doing so are mildly complicated and are buried too far within the UPDATING document. Two, you really should learn how to perform an update and/or recover from system problems if it doesn't boot by working on a test system first, and only making significant changes to a production system once you've gotten confident you know what you are doing. Failing that, perhaps you ought to hire a sysadmin or consultant with decent BSD experience, and let them solve the issues so that you can focus on other things -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
On 09/07/07, Jean-Paul Natola [EMAIL PROTECTED] wrote: On Mon, Jul 09, 2007 at 01:29:44PM -0700, Chuck Swiger wrote: On Jul 9, 2007, at 1:25 PM, Peter Boosten wrote: Having read this I must admit that it's a complete mystery to me why mergemaster would touch your password file at all... Because sometimes new versions of the OS come with new built-in user accounts, which need to be added to the existing passwd or groups databases somehow? Yes, exactly. Have to *merge* the changes into /etc/master.passwd rather than brute force overwrite. Notice the difference from my first post in this thread, the file which was clobbered is /etc/master.passwd, not just /etc/passwd which is a dummy I'M DONE now- now I cant even boot into safe or single user mode It keeps asking me to enter full pathname of shell or RETURN for /bin/sh I hit enter and I see the same message again , and again , and again and again Try typing /rescue/sh -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: password failure- after mergmaster
On 09/07/07, Jean-Paul Natola [EMAIL PROTECTED] wrote: On Mon, Jul 09, 2007 at 01:29:44PM -0700, Chuck Swiger wrote: On Jul 9, 2007, at 1:25 PM, Peter Boosten wrote: Having read this I must admit that it's a complete mystery to me why mergemaster would touch your password file at all... Because sometimes new versions of the OS come with new built-in user accounts, which need to be added to the existing passwd or groups databases somehow? Yes, exactly. Have to *merge* the changes into /etc/master.passwd rather than brute force overwrite. Notice the difference from my first post in this thread, the file which was clobbered is /etc/master.passwd, not just /etc/passwd which is a dummy I'M DONE now- now I cant even boot into safe or single user mode It keeps asking me to enter full pathname of shell or RETURN for /bin/sh I hit enter and I see the same message again , and again , and again and again Try typing /rescue/sh -- -- I'll try that in the am- I am just about finished configuring a new server ( well a replacement drive in the box)- since I have all my important info; Config files cf files etc.. saved, I should be done pretty soon. But I will definitely try your method just to satisfy my curiosity ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password failure- after mergmaster
David Kelly wrote: On Mon, Jul 09, 2007 at 01:29:44PM -0700, Chuck Swiger wrote: On Jul 9, 2007, at 1:25 PM, Peter Boosten wrote: Having read this I must admit that it's a complete mystery to me why mergemaster would touch your password file at all... Because sometimes new versions of the OS come with new built-in user accounts, which need to be added to the existing passwd or groups databases somehow? Yes, exactly. Have to *merge* the changes into /etc/master.passwd rather than brute force overwrite. Thanks David, that's indeed my point: FreeBSD comes packed with tools, among them are tools to create (or to delete) user accounts. Those tools can easily be scripted. Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]