Setting 'Default' keychain for another user on Mac OSX - macos

I am having trouble logging in to my usual admin account on my Mac OSX running Lion. Here's what happened:
I have two user-accounts on my mac (let's say MyAccount and Dummy)
I created a new keychain in Keychain Access MyAccount to test out something and set it to Default
I then logged in to Dummy and did some work there
I later came back to MyAccount and deleted the new Default keychain and went back to Dummy to continue what I was doing
I then shut down the mac and tried logging in to MyAccount but I keep looping back to the log-in screen
I tried turning on the root user from Dummy but how do I go about from there?
I am guess since I deleted the new keychain and did not set "login" to default, this messed up something
How do I log in to MyAccount now ?

Related

I forgot my Macbook's admin name and password and my user account is changed to standard, how can I change it?

I tried everything using terminal still can't get anything I can't change it using user setting as it demands the password and admin name I used keychain but still didn't get it
Boot up your Mac and hold CMD + R
which will boot into Recovery Mode.
Go to Utilities and open Terminal. Type in the following:
resetpassword
Close out the Terminal window and behind it you will find the Reset Password utility. All you have to do now is select the user account you want to reset, enter a new password or leave it blank and click Save. Then just simply restart the computer from the Apple menu and login with your new password.

Disable root login in terminal

recently, when I open my Mac terminal, it runs as root default and requires a password to continue.
After I enter the password, it switches to my common account, it is so strange. I want to log in as my common account by default, not the root, any ideas about this?
Did you already tried to change your account settings at SystemSettings/Accounts/ Login options ?

Got -25293(errSecAuthFailed) when access keychain item after app is updated

We're developing a Mac App(non-sandboxed) needs to access an ssl client certificate in keychain.
when the app first launches, there is a prompt to confirm to access keychain item. with options: always allow, allow, deny. which is fine.
when user choose always allow, the next time user launches app, the app will have the right access to use that certificate. but, when our app is update.(our app update using sparkle, it just simply replace the .app file on disk, then relaunches the app) , the updated app SOMEHOW CAN NOT ACCESS THIS CERTIFICATE, and get error -25293(errSecAuthFailed) ,
console output
Dec 10 19:21:55 userMacBook-Pro.local com.apple.SecurityServer[15]: suppressing keychain prompt for invalidly signed client /Applications/My-APP.app(42277)
Dec 10 19:21:55 userMacBook-Pro.local My-APP[42277]: CFNetwork SSLHandshake failed (-25293)
Error Domain=kCFStreamErrorDomainSSL Code=-25293
then i check that private key in keychain, the app's name is still in access control panel. finally, i reboot the system, the updated app can access this certificate again(without any promote prompt to confirm to access keychain item) and everything works fine. so, how can i keep the app keep right access to certificate after update without reboot the system? but this bug is not always shown, if the system is just boot(not running for hours), the app can update serval times and keep the right to certificate.
the app is always in access control after user click "Always Allow"
PS, if i manually go to access control list and choose "Allow all applications to access this item, then the app will has the right access. but we can not let our user to do this operation"
after some google search, i found a similar issue on sequel-pro
Won't save passwords on 10.8 12A269
SO, how can i let my app update , and keep the right access ? I found this issue on serval 10.9.x , 10.10.x systems.

Admin password is not working OS X Yosemite

Actually it works fine to login, and also when I execute something with sudo. But when I try to change preferences and window with login/password pops up, it says that password is incorrect.
So I actually cannot install anything.
I finally figured out the issue first you have to make another Admin account I did this by following this tutorial: https://www.youtube.com/watch?v=b7awY1KI2s8
DON'T USE THE SAME PASSWORD THAT YOU USED ON YOUR OTHER ACCOUNT I HAD PROBLEMS BECAUSE I DID THAT
If you are experiencing the same issues as me where the password didn't work
follow these steps to change the password
Restart the Mac
During when it's booting up go into recovery mode.
Once in recovery mode open up Terminal.
Enter this and then press enter: resetpassword
Reset password for the admin account that was made.
log into your new admin account and then make your other account an admin user.
Restart computer and then login to your account.
The problem is – input language is not eng, even showing it is. Try delete any other input languages – worked for me.
FWIW - I had a similar issue with DP3 following a restart (I could not login with any account). After shutting down and booting again, I was able to login again.
Had the same problem. Log in with iCloud solved it.

Which is the correct place to save my own application password in cocoa app?

My application name is "Secret Photos". In my application I need store the photos secretly. I have done this part. Now I need to authenticate the user to view the photos. First time while opening the app I will get the password from the user. Now where can I save this password ?
In Library/Containers Folder or in Keychain ? If I store this password in Containers folder anyone can easily view my password.
I have seen similar applications in app store. I can't able to find where those applications are saving their passwords. I have fully checked the containers folder. They are not storing the passwords containers folder. Where those applications are saving their passwords ?
EDIT 1:
If I save passwords in Keychain means users can able to see the password(If they know the mac password). Moreover If the user launches the app it prompts for "Secret Photos wants to access your confidential information .... " I don't want this kind of message. I have seen apps that is storing the passwords somewhere else not in containers folder and in keychain.
You can see this app. This is a free app.
https://itunes.apple.com/us/app/secret-files-x/id740356582?mt=12
Keychain is the best place to store passwords. That way a user can sync it to iCloud and between Macs. He also can look it up in the keychain if he has forgotten the password. The documentation by Apple explains a lot more on using it: Apple documentation

Resources