需要一个 Ubuntu 15.04 sudoers 文件

需要一个 Ubuntu 15.04 sudoers 文件

我尝试用 编辑时不小心删除了我的emacs。有人可以分享默认副本吗?

答案1

要了解如何解决这个问题,只需从 Ubuntu 实时磁盘启动并将/etc/sudoers文件复制到已安装的 Ubuntu 分区的/etc目录

无论如何,这是一个默认的:

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

相关内容