homebysix / jss-filevault-reissue

A framework for re-escrowing missing or invalid FileVault keys with Jamf Pro.
Apache License 2.0
186 stars 56 forks source link

Use both launchctl and sudo -u to run in user context #42

Closed homebysix closed 3 years ago

homebysix commented 3 years ago

Using both launchctl asuser and sudo -u to run in user context, as demonstrated here: https://scriptingosx.com/2020/08/running-a-command-as-another-user/

Awaiting testing results from volunteers before merging.

homebysix commented 3 years ago

Tested successfully.