Ubuntu 11.04 中用户的默认组?

chb*_*btn 5 permissions

由于一些虚拟机问题,我昨天不小心从某些组中删除了我的用户,今天我无法使用 sudo 做任何事情,不得不使用 livecd 来编辑 sudoers。

无论如何,我想将用户编辑为与默认安装相同的组,但我不知道要将用户添加到哪个组。

hto*_*que 5

除了您的用户组,您还处于

adm dialout cdrom plugdev lpadmin admin sambashare
Run Code Online (Sandbox Code Playgroud)

/etc/sudoers 应如下所示:

#
# 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

# 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

#includedir /etc/sudoers.d
Run Code Online (Sandbox Code Playgroud)