问题
在/etc/sudoers
我看到这个:
# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
如何将用户添加到该sudo
组?
答案1
sudo usermod -aG sudo <username>
a
非常重要,你需要重新启动shell/terminal或注销,并重新登录才能生效。
相关文章