Custom login/lock screen in OS X Mavericks

删除回忆录丶 提交于 2019-11-29 00:28:17

I found a way to edit the database - at first, I tried direct /var/private/db/auth.db sqlite modifications, but it didn't work, so after some time I managed to do this easier than I thought I will:

  1. security authorizationdb read system.login.console > outfile.plist

  2. After this, you need to modify the resulting outfile.plist as it's said in the NullAuthPlugin readme:

    <key>mechanisms</key>
      <array>
        <string>NameAndPassword:invoke</string>
    

    (the last line is the one you need to add to the file).

  3. Then, to save it to the database:

    security authorizationdb write system.login.console < outfile.plist

Then the changes should be visible on any login/lock screen of your system, but be careful!

You will not be able to authenticate with current version of NameAndPassword example!

Be sure to estabilish a working SSH connection to your Mac before you modify the database, so you will be able to revert the changes using other device (just repeat the db modification process but this time remove the line you added before).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!