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

前端 未结 10 1940
南方客
南方客 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条回答
  •  -上瘾入骨i
    2020-12-05 12:30

    You should use visudo to edit /etc/sudoers file.

    Just run sudo visudo -f /etc/sudoers

    and add your username with correct syntax and access rights. You can find more in man sudoers

提交回复
热议问题