Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

steve62388

macrumors 68040
Original poster
Apr 23, 2013
3,108
1,996
For various reasons I need to remotely access my Mac and on occasion reboot it.

The problem I am encountering is that when I reboot my Mac asks for my password, when it's at this point I can't remote access in. I presume this is the FileVault2 password.

I came across this: http://osxdaily.com/2015/03/06/bypass-filevault-password-per-boot-mac-os-x/

So I thought I would make an Automator script I could put on my desktop to automate the sudo fdesetup authrestart command. When I do that I get:- The action “Run Shell Script” encountered an error: “sudo: no tty present and no askpass program specified”

What's the easiest way to fix this whilst still remaining security conscious (avoiding my password in plain text for example)? I would also like something that can continue to work through macOS upgrades, it won't be broken or overwritten.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.