Re: How to restore a lost root password...
On Mon, Oct 27, 2008 at 02:12:19AM -0600, Steven Susbauer wrote: > Mauricio L?pez wrote: > >On Sun, Oct 26, 2008 at 4:08 PM, Daniel Bye > ><[EMAIL PROTECTED]> wrote: > >>On Sun, Oct 26, 2008 at 09:18:25PM +0100, Rada alive wrote: > I have seen a "How to" about this but I have a problem, i set the > console > to insecure, so when I try to do the step of the "how to" i get a > message > to input the root password or Ctrl-D to enter in multiuser mode. > >>>What happened to just booting into single-user mode and issuing passwd? > >>The OP made a point of letting us know that he has marked his console > >>`insecure' in /etc/ttys. In order to even get a shell in single user, > >>he needs the root password. > >> > > > >As far as I know, from my previous Linux experience, you just need a > >LiveCD in order to boot the PC, mount the / partition, edit > >/etc/passwd or /etc/shadow and change the hash for one that correspond > >to one we know. Perhaps you can make it in every UNIX. > > > Mauricio L?pez wrote: > >On Sun, Oct 26, 2008 at 4:08 PM, Daniel Bye > ><[EMAIL PROTECTED]> wrote: > >>On Sun, Oct 26, 2008 at 09:18:25PM +0100, Rada alive wrote: > I have seen a "How to" about this but I have a problem, i set the > console > to insecure, so when I try to do the step of the "how to" i get a > message > to input the root password or Ctrl-D to enter in multiuser mode. > >>>What happened to just booting into single-user mode and issuing passwd? > >>The OP made a point of letting us know that he has marked his console > >>`insecure' in /etc/ttys. In order to even get a shell in single user, > >>he needs the root password. > >> > > > >As far as I know, from my previous Linux experience, you just need a > >LiveCD in order to boot the PC, mount the / partition, edit > >/etc/passwd or /etc/shadow and change the hash for one that correspond > >to one we know. Perhaps you can make it in every UNIX. > > > This is similar to what Matthew Seaman was mentioning. > > I am curious though, might it be possible to boot from something like > Freesbie (or a fixit disc), mount the drive, chroot to the actual > install and run passwd like normal to change the password? Does root on > FreeBSD ask to verify the old password when trying to change its own? That is exactly what the OP has to do. Use the fixit. Boot it, Make a mount point and mount the other root file system and change the root password. Along the way, he might also try to undo that insecure console thing. Root does not ask for the old password if you are root trying to change a password. jerry > > > ___ > 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: How to restore a lost root password...
G'Day, Steven Susbauer wrote: Mauricio López wrote: On Sun, Oct 26, 2008 at 4:08 PM, Daniel Bye --snip-- As far as I know, from my previous Linux experience, you just need a LiveCD in order to boot the PC, mount the / partition, edit /etc/passwd or /etc/shadow and change the hash for one that correspond to one we know. Perhaps you can make it in every UNIX. This is similar to what Matthew Seaman was mentioning. I am curious though, might it be possible to boot from something like Freesbie (or a fixit disc), mount the drive, chroot to the actual install and run passwd like normal to change the password? Does root on yep. FreeBSD ask to verify the old password when trying to change its own? nope :) HTH cya Andrew ___ 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: How to restore a lost root password...
Mauricio López wrote: On Sun, Oct 26, 2008 at 4:08 PM, Daniel Bye <[EMAIL PROTECTED]> wrote: On Sun, Oct 26, 2008 at 09:18:25PM +0100, Rada alive wrote: I have seen a "How to" about this but I have a problem, i set the console to insecure, so when I try to do the step of the "how to" i get a message to input the root password or Ctrl-D to enter in multiuser mode. What happened to just booting into single-user mode and issuing passwd? The OP made a point of letting us know that he has marked his console `insecure' in /etc/ttys. In order to even get a shell in single user, he needs the root password. As far as I know, from my previous Linux experience, you just need a LiveCD in order to boot the PC, mount the / partition, edit /etc/passwd or /etc/shadow and change the hash for one that correspond to one we know. Perhaps you can make it in every UNIX. Mauricio López wrote: On Sun, Oct 26, 2008 at 4:08 PM, Daniel Bye <[EMAIL PROTECTED]> wrote: On Sun, Oct 26, 2008 at 09:18:25PM +0100, Rada alive wrote: I have seen a "How to" about this but I have a problem, i set the console to insecure, so when I try to do the step of the "how to" i get a message to input the root password or Ctrl-D to enter in multiuser mode. What happened to just booting into single-user mode and issuing passwd? The OP made a point of letting us know that he has marked his console `insecure' in /etc/ttys. In order to even get a shell in single user, he needs the root password. As far as I know, from my previous Linux experience, you just need a LiveCD in order to boot the PC, mount the / partition, edit /etc/passwd or /etc/shadow and change the hash for one that correspond to one we know. Perhaps you can make it in every UNIX. This is similar to what Matthew Seaman was mentioning. I am curious though, might it be possible to boot from something like Freesbie (or a fixit disc), mount the drive, chroot to the actual install and run passwd like normal to change the password? Does root on FreeBSD ask to verify the old password when trying to change its own? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to restore a lost root password...
On Sun, Oct 26, 2008 at 4:08 PM, Daniel Bye <[EMAIL PROTECTED]> wrote: > On Sun, Oct 26, 2008 at 09:18:25PM +0100, Rada alive wrote: >> > I have seen a "How to" about this but I have a problem, i set the console >> > to insecure, so when I try to do the step of the "how to" i get a message >> > to input the root password or Ctrl-D to enter in multiuser mode. >> >> What happened to just booting into single-user mode and issuing passwd? > > The OP made a point of letting us know that he has marked his console > `insecure' in /etc/ttys. In order to even get a shell in single user, > he needs the root password. > As far as I know, from my previous Linux experience, you just need a LiveCD in order to boot the PC, mount the / partition, edit /etc/passwd or /etc/shadow and change the hash for one that correspond to one we know. Perhaps you can make it in every UNIX. -- Mauricio López ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to restore a lost root password...
On Sun, Oct 26, 2008 at 09:18:25PM +0100, Rada alive wrote: > > I have seen a "How to" about this but I have a problem, i set the console > > to insecure, so when I try to do the step of the "how to" i get a message > > to input the root password or Ctrl-D to enter in multiuser mode. > > What happened to just booting into single-user mode and issuing passwd? The OP made a point of letting us know that he has marked his console `insecure' in /etc/ttys. In order to even get a shell in single user, he needs the root password. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpdPWpeb3Vw7.pgp Description: PGP signature
Re: How to restore a lost root password...
On Sun, Oct 26, 2008 at 5:08 AM, FBSD1 <[EMAIL PROTECTED]> wrote: > Go to www.a1poweruser.com and read section 13.7 Forgot Root password > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of DSA - JCR > Sent: Saturday, October 25, 2008 9:56 PM > To: freebsd-questions@freebsd.org > Subject: How to restore a lost root password... > > Hi all > > I have lost the neuron where I stored the root password of an installation > ;D > > I have seen a "How to" about this but I have a problem, i set the console > to insecure, so when I try to do the step of the "how to" i get a message > to input the root password or Ctrl-D to enter in multiuser mode. > > Is there a way to restore/modify it, or not? > > Some ideas? > > > Thanks in advance > > Juan Coruña > Desarrollo de Software Atlantico > > > > ___ > 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]" > What happened to just booting into single-user mode and issuing passwd? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: How to restore a lost root password...
Go to www.a1poweruser.com and read section 13.7 Forgot Root password -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of DSA - JCR Sent: Saturday, October 25, 2008 9:56 PM To: freebsd-questions@freebsd.org Subject: How to restore a lost root password... Hi all I have lost the neuron where I stored the root password of an installation ;D I have seen a "How to" about this but I have a problem, i set the console to insecure, so when I try to do the step of the "how to" i get a message to input the root password or Ctrl-D to enter in multiuser mode. Is there a way to restore/modify it, or not? Some ideas? Thanks in advance Juan Coruña Desarrollo de Software Atlantico ___ 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: How to restore a lost root password...
Matthew Seaman wrote: Matthew Seaman wrote: DSA - JCR wrote: Hi all I have lost the neuron where I stored the root password of an installation ;D I have seen a "How to" about this but I have a problem, i set the console to insecure, so when I try to do the step of the "how to" i get a message to input the root password or Ctrl-D to enter in multiuser mode. Is there a way to restore/modify it, or not? Some ideas? You can try booting from installation media into 'fixit' mode or live filesystem. Once there, you can mount your HDD read-write; edit /etc/master.password to remove the crypted password string from the line for the root account; run 'cap_mkdb ./master.passwd'; reboot back Ooops. Make that: 'pwd_mkdb ./master.passwd' Double ooops. make that: 'pwd_mkdb -d . ./master.passwd' to your normal system and then log in as root (no password) and /immediately/ set another root password. This time, don't forget your root password. If you struggle to memorise it, then *write it down* on its own, on a blank sheet of paper. Don't add any really obvious text like "this is the root password for my server" -- after all, we don't want to make it too easy for anyone trying to break in do we? Seal that paper in an envelope and keep it in a safe place. But not so safe that you forget where you put it... Cheers, Matthew Matthew Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: How to restore a lost root password...
Matthew Seaman wrote: DSA - JCR wrote: Hi all I have lost the neuron where I stored the root password of an installation ;D I have seen a "How to" about this but I have a problem, i set the console to insecure, so when I try to do the step of the "how to" i get a message to input the root password or Ctrl-D to enter in multiuser mode. Is there a way to restore/modify it, or not? Some ideas? You can try booting from installation media into 'fixit' mode or live filesystem. Once there, you can mount your HDD read-write; edit /etc/master.password to remove the crypted password string from the line for the root account; run 'cap_mkdb ./master.passwd'; reboot back Ooops. Make that: 'pwd_mkdb ./master.passwd' to your normal system and then log in as root (no password) and /immediately/ set another root password. This time, don't forget your root password. If you struggle to memorise it, then *write it down* on its own, on a blank sheet of paper. Don't add any really obvious text like "this is the root password for my server" -- after all, we don't want to make it too easy for anyone trying to break in do we? Seal that paper in an envelope and keep it in a safe place. But not so safe that you forget where you put it... Cheers, Matthew Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: How to restore a lost root password...
DSA - JCR wrote: Hi all I have lost the neuron where I stored the root password of an installation ;D I have seen a "How to" about this but I have a problem, i set the console to insecure, so when I try to do the step of the "how to" i get a message to input the root password or Ctrl-D to enter in multiuser mode. Is there a way to restore/modify it, or not? Some ideas? You can try booting from installation media into 'fixit' mode or live filesystem. Once there, you can mount your HDD read-write; edit /etc/master.password to remove the crypted password string from the line for the root account; run 'cap_mkdb ./master.passwd'; reboot back to your normal system and then log in as root (no password) and /immediately/ set another root password. This time, don't forget your root password. If you struggle to memorise it, then *write it down* on its own, on a blank sheet of paper. Don't add any really obvious text like "this is the root password for my server" -- after all, we don't want to make it too easy for anyone trying to break in do we? Seal that paper in an envelope and keep it in a safe place. But not so safe that you forget where you put 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 signature.asc Description: OpenPGP digital signature