Posted on 10-11-2019 09:27 AM
/usr/bin/security authorizationdb read system.login.screensaver >/tmp/originalss.$$ /usr/bin/sed 's/use-login-window-ui/authenticate-session-owner-or-admin/' /tmp/originalss.$$ >/tmp/newss.$$ /usr/bin/security authorizationdb write system.login.screensaver </tmp/newss.$$
The contents claim that this is still the way to do it but locking the screen never gives a dialog just black with cursor.
The owner or any administrator can unlock the screensaver, set rule to "authenticate-session-owner-or-admin" to enable SecurityAgent.
Posted on 10-30-2019 09:35 AM
Still broken under 10.15.1
Posted on 12-11-2019 12:20 PM
Still broken under 10.15.2
Posted on 12-11-2019 04:08 PM
Does this work? Not sure why you're using sed and appending that way.
security authorizationdb write system.login.screensaver authenticate-session-owner-or-admin
Reference here - https://dssw.co.uk/reference/authorization-rights/system-login-screensaver.html
Posted on 12-12-2019 07:28 AM
Not sure what my original source of the code was but the result is the same.
It might actually may be fixed in 10.15.2. Small sample though.