我正在尝试编写一个脚本,以便使用boxen在新计算机上自动安装软件。如果硬盘驱动器已加密,则只能运行boxen。我可以禁用它,但无论如何我想加密驱动器。有没有办法从终端做到这一点,以便我可以更简化流程?
答案 0 :(得分:2)
试用fdesetup
工具:
NAME
fdesetup -- FileVault enabling tool
SYNOPSIS
fdesetup verb [options]
DESCRIPTION
fdesetup is used to enable or disable FileVault, to list, add, or remove
enabled FileVault users, and to obtain status about the current state of
FileVault. Most commands require root access and need to be authenticated
with either a FileVault password, a personal recovery key (if enabled),
and in some cases the private key from the installed institutional recov-
ery key. Some status related commands can be run from a non-root ses-
sion.
...
答案 1 :(得分:0)
不是真的。您可以打开它们的安全性首选项窗格(例如open /System/Library/PreferencePanes/Security.prefPane
)并告诉他们在那里启用FileVault,但打开它需要用户密码和重启,所以没有他们的帮助就无法完成。