OS X provides Keychain Access, which is a great way to save passwords of varying apps and websites. When you want to view a password via the Keychain Access GUI, you are asked the admin password. However, OS X also provides a command to export all Keychain Access passwords to a text file, unencrypted:
security dump-keychain -d login.keychain > keychain.txt
This command does not require
So I have two questions:
- How can I add the
sudoprivilege requirement to the
- Is this behaviour intended or is it a major inconsistency with regards to security concerns at Apple ?