To preface, I was having issues with my Keychain Access remembering passwords so I cleared it to 'reset it' and I accidentally deleted my login.keychain so now my computer doesn't recognize my User account password when I try to login.
I have the code to create a new keychain using the
security create-keychain
And even the code to change the user password
security set-keychain-password -o oldpassword -p newpassword /Users/username/Library/Keychains/login.keychain
However when I try to change the user password, I get an error saying something to the effect of "login.keychain does not exist"
Any help is greatly appreciated!!