I have written a plist so that launchctl runs a specific command at startup. I works as expected, except by the fact that it asks me for the admin password which I would like not to have to write it. Does anyone know how to keep it from asking me the admin password?.
It is my personal macbook so I know the admin password and have full access over the machine.
My plist file is as follows:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>veracrypt_auto_mount</string> <!-- org.mongodb.mongodb perhaps? --> <key>OnDemand</key> <false/> <key>UserName</key> <string>fabio</string> <key>GroupName</key> <string>admin</string> <key>ProgramArguments</key> <array> <string>/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt</string> <string>--mount</string> <string>/dev/disk0s7</string> <string>/Volumes/Veracrypt</string> <string>--password=XXXXXX</string> </array>