*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Recently I installed OpenBSD 3.4 on one of my old computers by following the guide posted on OpenBSD.org. Necessary changes were made but they were few. After the installation was complete I took out the cd and rebooted my computer. The computer booted up fine. It prompted me for my login/password and I was proptly rejected. I was sure I remembered the login/password I had configured when I installed OpenBSD, but after an hour of failed attempts I decided to do the install again, this time using the same password and login that I use on my other computer. Unfortunatly it didn't work and I still can't log in. I know it isn't me this time.
Has this ever happened to anyone? Any suggestions for remedies or ways around this problem? Thanks for any help in advance.
Another question is, when did you setup the user? If you tried to add a user immediately after the install (i.e. no reboot), I'm not sure if that's actually saved, since the file systems are mounted in different places during setup. Did you try logging in as root with the root password you gave during the install? There should be no way that logging in as root wouldn't work (as long as you remember what you used for the root password, of course).
If you were trying to add a user before rebooting, then trying to login as that user after reboot, try root instead. Don't create any new users until the system has been rebooted following the install.
I recently installed OpenBSD 3.5 and during the install it did not give me the option to add any users. You set up a root password and that's about it until you reboot your system and then use useradd or adduser. I'm with chort on this one. Finish the install, then login w/ username root and the password that you set up.
Originally posted by chort This is a long shot, but did you type your username in caps by any chance?
Don't create any new users until the system has been rebooted following the install.
I remember it reminding me the the login is case sensitive so I was very carefull about that. The first time I installed I thought that maybe I hit caps inbetween the time in which you type the domain and when you give the password, and made sure I didn't do anything of the sort on the second install
And yes, i'm trying to log in as the root, which is why i'm so baffled. I didn't notice any point of the install which allowed me to create other users, I believe you do so after you log in as the root.
Well, you probably should reset the root password and just go from there. Who knows what happened.
When the computer starts and you get the prompt "boot>" before the timeout happens...
Type "boot -s" without the "'s
When the computer boots. Remount the drives rw -- this is usually done by typing "mount -a" but if your drives are dirty or your /etc/fstab is wrong you will have to do other things first. Chances are, since you get to a prompt normally, that won't be an issue.
After the partitions are remounted... type "passwd root" -- it is important to include the username because you are not 'technically' root in single user mode... you don't really exist on the system. It is root and it isn't... and it is better safe than sorry.
Type in your new password. then do a "shutdown -r now" to reboot into multi-user mode (there is a way to just continue the boot by exiting out of single user mode -- personally, I prefer to reboot for no good reason at all).
And everything should be fine. Hope this works.
Note, if you set your console as an insecure tty (not the default setting, even in OpenBSD as far as I know) you will need to enter the root password to get to single user mode. Using the install disks you can work around this but it is slightly more complicated and you shouldn't need to.