如何将用户添加到"sudo"组?

分享于 

1分钟阅读

ubuntu

  繁體

问题

/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或注销,并重新登录才能生效。


USE  添加  用户  Group  
相关文章