Linux: 'Username' is not in the sudoers file. This incident will be reported

前端 未结 10 1937
南方客
南方客 2020-12-05 12:05

After logging into ssh, I got this message:

\'Username\' is not in the sudoers file. This incident will be reported.

How can I r

10条回答
  •  自闭症患者
    2020-12-05 12:21

    Got a slightly different syntax to Rodney's from my host

    usermod -aG wheel username
    

    Their explanation was

    The user will need to be added to the wheel group.

    Use the usermod command to add the user to the wheel group.

    You may need to log off and log back in after doing this

提交回复
热议问题