使用管理员权限开机执行某个命令的方法
解决方法:为命令添加sodo无需密码的例外。
将以下语句加入`/etc/sudoers末尾:
[yourname] ALL=NOPASSWD: [full path to the command]