Open keeleysam opened 7 years ago
I signed it!
CLAs look good, thanks!
Looks like this will only work for folks using crypt. We will need to find a more general solution for APFS crypto users. fdeadduser does still work when I tested on 10.13, but for HFS only. Make sense, some work will have to be done for APFS.
Yeah, I'd like to see a solution that doesn't involve having to have the recovery key on disk but given the prevalence of Crypt in the community I'd be OK with merging if you change the condition on line 65 to also check for the presence of the recovery key file.
If we find a way to fix fdeadduser later we can then revert this or only use it as a backup in case fdeadduser fails.
I made a bunch of changes that checks for APFS, SIP, and if the user was actually successfully added. Bash is fun.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g.
I signed it!
) and we'll verify. Thanks.