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

前端 未结 10 1957
南方客
南方客 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
    慢半拍i (楼主)
    2020-12-05 12:29

    Open file

    sudo nano /etc/sudoers
    

    Then add the user below admin user like below syntax.

    user_name ALL=(ALL)  ALL
    

提交回复
热议问题