Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在/正在尝试运行终端命令而不必先使用 sudo 并且必须破坏文件。现在我正在尝试修复它,当我尝试使用相同的sudo visudo命令进行编辑时,它给了我这个错误。
sudo visudo
/etc/sudoers:第 62 行附近的语法错误 <<< sudo:第 62 行附近 /etc/sudoers 中的解析错误 sudo:找不到有效的 sudoers 源,退出 sudo:无法初始化策略插件
我在使用终端的 Mac 上
有没有办法编辑这个文件并删除我添加或重置它而不损害或删除其他文件?