需要一个 Ubuntu 15.04 sudoers 文件

Aid*_*ido 3 sudo 15.04

我试图用emacs. 任何人都可以共享默认副本吗?

May*_*hux 5

要了解如何解决此问题,只需从 Ubuntu live disk 启动并将/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
Run Code Online (Sandbox Code Playgroud)