我正在使用 ubuntu 12 并且无法再使用sudo
(几天前它正在工作)但显然以某种方式损坏了。以下是我尝试使用时收到的错误sudo
。
sudo: unable to stat /etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Run Code Online (Sandbox Code Playgroud)
除了重用 ubuntu live cd,还有什么我可以研究来解决这个问题的吗?
您可以手动创建这样的sudoers
文件:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
Run Code Online (Sandbox Code Playgroud)
您可以按照本指南了解如何编辑/创建sudoers
文件。
另外,请检查此论坛主题。
归档时间: |
|
查看次数: |
1155 次 |
最近记录: |